Reset changes by 'go get'

This commit is contained in:
Alexander Neumann 2019-11-22 13:17:52 +01:00
parent 02c8d38095
commit 4e3353109d

View file

@ -201,6 +201,11 @@ func (env *TravisEnvironment) Prepare() error {
} }
} }
// reset changes made to go.mod/go.sum by "go get"
if err := run("git", "checkout", "go.mod", "go.sum"); err != nil {
return err
}
if err := env.getMinio(); err != nil { if err := env.getMinio(); err != nil {
return err return err
} }
@ -210,6 +215,12 @@ func (env *TravisEnvironment) Prepare() error {
if err := run("go", "get", "github.com/mitchellh/gox"); err != nil { if err := run("go", "get", "github.com/mitchellh/gox"); err != nil {
return err return err
} }
// reset changes made to go.mod/go.sum by "go get"
if err := run("git", "checkout", "go.mod", "go.sum"); err != nil {
return err
}
if runtime.GOOS == "linux" { if runtime.GOOS == "linux" {
env.goxOSArch = []string{ env.goxOSArch = []string{
"linux/386", "linux/amd64", "linux/386", "linux/amd64",