mirror of https://github.com/restic/restic.git
Reset changes by 'go get'
This commit is contained in:
parent
02c8d38095
commit
4e3353109d
|
@ -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 {
|
||||
return err
|
||||
}
|
||||
|
@ -210,6 +215,12 @@ func (env *TravisEnvironment) Prepare() error {
|
|||
if err := run("go", "get", "github.com/mitchellh/gox"); err != nil {
|
||||
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" {
|
||||
env.goxOSArch = []string{
|
||||
"linux/386", "linux/amd64",
|
||||
|
|
Loading…
Reference in New Issue