mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-12 06:50:31 +00:00
syz-ci: move GOPATH/GOROOT setup to main
GOPATH/GOROOT are also needed for jobs. Updater can be disabled with -autoupdate=0, so move GOPATH/GOROOT setup to main. Update #501
This commit is contained in:
parent
5900c53a4d
commit
8fb18735b7
@ -129,6 +129,13 @@ func main() {
|
||||
|
||||
serveHTTP(cfg)
|
||||
|
||||
os.Unsetenv("GOPATH")
|
||||
if cfg.Goroot != "" {
|
||||
os.Setenv("GOROOT", cfg.Goroot)
|
||||
os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+
|
||||
string(filepath.ListSeparator)+os.Getenv("PATH"))
|
||||
}
|
||||
|
||||
updatePending := make(chan struct{})
|
||||
updater := NewSyzUpdater(cfg)
|
||||
updater.UpdateOnStart(*flagAutoUpdate, shutdownPending)
|
||||
|
@ -63,12 +63,6 @@ func NewSyzUpdater(cfg *Config) *SyzUpdater {
|
||||
}
|
||||
|
||||
gopath := filepath.Join(wd, "gopath")
|
||||
os.Unsetenv("GOPATH")
|
||||
if cfg.Goroot != "" {
|
||||
os.Setenv("GOROOT", cfg.Goroot)
|
||||
os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+
|
||||
string(filepath.ListSeparator)+os.Getenv("PATH"))
|
||||
}
|
||||
syzkallerDir := filepath.Join(gopath, "src", "github.com", "google", "syzkaller")
|
||||
osutil.MkdirAll(syzkallerDir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user