mirror of
https://github.com/mudler/luet.git
synced 2025-08-31 06:35:12 +00:00
Fix original version mapping in versioner
This commit is contained in:
@@ -50,12 +50,11 @@ func (w *WrappedVersioner) Sort(toSort []string) []string {
|
||||
result := []string{}
|
||||
for _, v := range toSort {
|
||||
sanitizedVersion := w.Sanitize(v)
|
||||
versionsMap[v] = sanitizedVersion
|
||||
versionsMap[sanitizedVersion] = v
|
||||
versionsRaw = append(versionsRaw, sanitizedVersion)
|
||||
}
|
||||
|
||||
versions := make([]*semver.Version, len(versionsRaw))
|
||||
|
||||
for i, raw := range versionsRaw {
|
||||
v, _ := semver.NewVersion(raw)
|
||||
versions[i] = v
|
||||
|
Reference in New Issue
Block a user