提交 0d1bbf11 编写于 作者: J Jingwen Owen Ou

Update dependencies as part of the build

上级 6a675ede
......@@ -47,6 +47,14 @@ func TaskCrossCompile(t *tasking.T) {
return
}
// 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
}
t.Logf("Cross-compiling gh for %s...\n", runtime.GOOS)
err = t.Exec("goxc", "-wd=.", "-os="+runtime.GOOS, "-c="+runtime.GOOS)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册