mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-26 06:35:31 +00:00
syz-ci: unset GOPATH
syz-ci always passes own GOPATH, if GOPATH is already present in env, it causes havoc. Unset it.
This commit is contained in:
parent
4906b5987e
commit
84277f259c
@ -60,6 +60,7 @@ func NewSyzUpdater(cfg *Config) *SyzUpdater {
|
|||||||
|
|
||||||
gopath := filepath.Join(wd, "gopath")
|
gopath := filepath.Join(wd, "gopath")
|
||||||
os.Setenv("GOROOT", cfg.Goroot)
|
os.Setenv("GOROOT", cfg.Goroot)
|
||||||
|
os.Unsetenv("GOPATH")
|
||||||
os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+
|
os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+
|
||||||
string(filepath.ListSeparator)+os.Getenv("PATH"))
|
string(filepath.ListSeparator)+os.Getenv("PATH"))
|
||||||
syzkallerDir := filepath.Join(gopath, "src", "github.com", "google", "syzkaller")
|
syzkallerDir := filepath.Join(gopath, "src", "github.com", "google", "syzkaller")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user