"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "integration/plugin/volumes/helpers_test.go" between
moby-20.10.7.tar.gz and moby-20.10.8.tar.gz

About: Moby is a framework to assemble specialized container systems (formerly project name Docker; see here to clarify the relationship between the projects).

helpers_test.go  (moby-20.10.7):helpers_test.go  (moby-20.10.8)
skipping to change at line 39 skipping to change at line 39
} }
installPath := filepath.Join(goPath, "bin", name) installPath := filepath.Join(goPath, "bin", name)
if _, err := os.Stat(installPath); err == nil { if _, err := os.Stat(installPath); err == nil {
return installPath return installPath
} }
goBin, err := exec.LookPath("go") goBin, err := exec.LookPath("go")
assert.NilError(t, err) assert.NilError(t, err)
cmd := exec.Command(goBin, "build", "-o", installPath, "./"+filepath.Join ("cmd", name)) cmd := exec.Command(goBin, "build", "-o", installPath, "./"+filepath.Join ("cmd", name))
cmd.Env = append(os.Environ(), "CGO_ENABLED=0") cmd.Env = append(os.Environ(), "CGO_ENABLED=0", "GO111MODULE=off")
if out, err := cmd.CombinedOutput(); err != nil { if out, err := cmd.CombinedOutput(); err != nil {
t.Fatal(errors.Wrapf(err, "error building basic plugin bin: %s", string(out))) t.Fatal(errors.Wrapf(err, "error building basic plugin bin: %s", string(out)))
} }
return installPath return installPath
} }
func withSockPath(name string) func(*plugin.Config) { func withSockPath(name string) func(*plugin.Config) {
return func(cfg *plugin.Config) { return func(cfg *plugin.Config) {
cfg.Interface.Socket = name cfg.Interface.Socket = name
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)