To fix #5, tell 'go get' not to build on fetch.
diff --git a/cmd/goget.go b/cmd/goget.go
index 5cab5e6..2a7c61e 100644
--- a/cmd/goget.go
+++ b/cmd/goget.go
@@ -10,7 +10,7 @@
type GoGetVCS struct {}
func (g *GoGetVCS) Get(dep *Dependency) error {
- out, err := exec.Command("go", "get", dep.Name).CombinedOutput()
+ out, err := exec.Command("go", "get", "-d", dep.Name).CombinedOutput()
if err != nil {
//fmt.Print(string(out))
if strings.Contains(string(out), "no buildable Go source") {
@@ -23,7 +23,7 @@
}
func (g *GoGetVCS) Update(dep *Dependency) error {
- out, err := exec.Command("go", "get", "-u", dep.Name).CombinedOutput()
+ out, err := exec.Command("go", "get", "-d", "-u", dep.Name).CombinedOutput()
if err != nil {
if strings.Contains(string(out), "no buildable Go source") {
Info("Go Get: %s", out)