зеркало из https://github.com/mislav/hub.git
Exclude windows on go get
This commit is contained in:
Родитель
0d1bbf1189
Коммит
4dbf487e67
12
gh_task.go
12
gh_task.go
|
@ -48,11 +48,13 @@ func TaskCrossCompile(t *tasking.T) {
|
|||
}
|
||||
|
||||
// TODO: use a dependency manager that has versioning
|
||||
t.Log("Updating dependencies...")
|
||||
err = t.Exec("go get -u ./...")
|
||||
if err != nil {
|
||||
t.Errorf("Can't update goxc: %s\n", err)
|
||||
return
|
||||
if runtime.GOOS != "windows" {
|
||||
t.Log("Updating dependencies...")
|
||||
err = t.Exec("go get -u ./...")
|
||||
if err != nil {
|
||||
t.Errorf("Can't update goxc: %s\n", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
t.Logf("Cross-compiling gh for %s...\n", runtime.GOOS)
|
||||
|
|
Загрузка…
Ссылка в новой задаче