File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ func (p *Package) IsAlreadyUpToDate() bool {
131
131
}
132
132
133
133
return versionUpToDate (
134
- strings .TrimLeft (p .Version .Current , "v" ),
135
- strings .TrimLeft (p .Version .Latest , "v" ),
134
+ strings .TrimPrefix (p .Version .Current , "v" ),
135
+ strings .TrimPrefix (p .Version .Latest , "v" ),
136
136
) && versionUpToDate (
137
- strings .TrimLeft (p .GoVersion .Current , "go" ),
138
- strings .TrimLeft (p .GoVersion .Latest , "go" ),
137
+ strings .TrimPrefix (p .GoVersion .Current , "go" ),
138
+ strings .TrimPrefix (p .GoVersion .Latest , "go" ),
139
139
)
140
140
}
141
141
@@ -367,7 +367,7 @@ func GetPackageInformation(binList []string) []Package {
367
367
GoVersion : NewVersion (),
368
368
}
369
369
pkg .Version .Current = info .Main .Version
370
- pkg .GoVersion .Current = info .GoVersion
370
+ pkg .GoVersion .Current , _ , _ = strings . Cut ( info .GoVersion , " " )
371
371
pkg .GoVersion .Latest = goVer
372
372
pkgs = append (pkgs , pkg )
373
373
}
You can’t perform that action at this time.
0 commit comments