diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-05 13:11:55 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-05 13:11:55 +0200 |
| commit | 84277f259c771f5878fc7a3d98f04c3cc80b591c (patch) | |
| tree | 575939e26009ed7180755957af4b00f6782d69b4 | |
| parent | 4906b5987e28f9af92f6d5c7de4392957c3076b7 (diff) | |
syz-ci: unset GOPATH
syz-ci always passes own GOPATH,
if GOPATH is already present in env, it causes havoc.
Unset it.
| -rw-r--r-- | syz-ci/syzupdater.go | 1 |
1 files changed, 1 insertions, 0 deletions
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") |
