forked from TrueCloudLab/restic
Reset changes by 'go get'
This commit is contained in:
parent
02c8d38095
commit
4e3353109d
1 changed files with 11 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue