From 84277f259c771f5878fc7a3d98f04c3cc80b591c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 5 Jul 2018 13:11:55 +0200 Subject: syz-ci: unset GOPATH syz-ci always passes own GOPATH, if GOPATH is already present in env, it causes havoc. Unset it. --- syz-ci/syzupdater.go | 1 + 1 file changed, 1 insertion(+) diff --git a/syz-ci/syzupdater.go b/syz-ci/syzupdater.go index 93d7dd2e0..94cc2cf87 100644 --- a/syz-ci/syzupdater.go +++ b/syz-ci/syzupdater.go @@ -60,6 +60,7 @@ func NewSyzUpdater(cfg *Config) *SyzUpdater { gopath := filepath.Join(wd, "gopath") os.Setenv("GOROOT", cfg.Goroot) + os.Unsetenv("GOPATH") os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+ string(filepath.ListSeparator)+os.Getenv("PATH")) syzkallerDir := filepath.Join(gopath, "src", "github.com", "google", "syzkaller") -- cgit mrf-deployment