Skip to content

Commit 6d9e316

Browse files
authored
fix: storage version comparison (#4476)
1 parent 3df2b1d commit 6d9e316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ func (c *config) Load(path string, fsys fs.FS, overrides ...ConfigEditor) error
614614
}
615615
if version, err := fs.ReadFile(fsys, builder.StorageVersionPath); err == nil && len(version) > 0 {
616616
// Only replace image if local storage version is newer
617-
if i := strings.IndexByte(Images.Storage, ':'); VersionCompare(string(version), Images.Storage[i+1:]) > 0 {
617+
if i := strings.IndexByte(Images.Storage, ':'); semver.Compare(string(version), Images.Storage[i+1:]) > 0 {
618618
c.Storage.Image = replaceImageTag(Images.Storage, string(version))
619619
}
620620
}

0 commit comments

Comments
 (0)