Skip to content

Commit

Permalink
feat: use version default use 1.40
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromake committed Aug 26, 2024
1 parent e897cf5 commit 04b4047
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions internal/config/version-0.7.10.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package config

import (
"github.com/blang/semver"
"github.com/docker/docker/api"
)

// Up000710 update version 0.7.10
func Up000710(conf *Config) error {
for _, c := range conf.DockerConfig {
// 强制切换为 1.40
if c.Version == "" || c.Version == api.DefaultVersion {
c.Version = "1.40"
}
}
return nil
}

func init() {
v, err := semver.Parse("0.7.10")
if err != nil {
return
}
migrationArr = append(migrationArr, &migration{
Up: Up000710,
Version: v,
})
}

0 comments on commit 04b4047

Please sign in to comment.