summaryrefslogtreecommitdiff
path: root/cmd/ponzu/add.go
diff options
context:
space:
mode:
authorOllie Phillips <oliver@eantics.co.uk>2017-02-24 17:34:06 +0000
committerOllie Phillips <oliver@eantics.co.uk>2017-02-24 17:34:06 +0000
commitbf695fb3c70e408b71a98f33b52d1811210fbcb9 (patch)
tree6e3b5723d762087f6e92639f5acdbaf8784decd5 /cmd/ponzu/add.go
parentcdc044e28529aa129de7ef685089a7dcc4f1d511 (diff)
Some logging, files not copied
Diffstat (limited to 'cmd/ponzu/add.go')
-rw-r--r--cmd/ponzu/add.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/ponzu/add.go b/cmd/ponzu/add.go
index 5d443b7..f1b6cf5 100644
--- a/cmd/ponzu/add.go
+++ b/cmd/ponzu/add.go
@@ -2,6 +2,7 @@ package main
import (
"errors"
+ "log"
"os"
"os/exec"
"path/filepath"
@@ -42,7 +43,9 @@ func getAddon(args []string) error {
gopath := resolveGOPATH()
src := filepath.Join(gopath, addonPath)
+ log.Println(src)
dest := filepath.Join("addons", addonPath)
+ log.Println(dest)
err = copyAll(src, dest)
if err != nil {
@@ -55,7 +58,6 @@ func getAddon(args []string) error {
// `go get` uses saves packages to the first entry, so this function
// should parse out the first whatever the OS
func resolveGOPATH() string {
-
envGOPATH := os.Getenv("GOPATH")
gopaths := strings.Split(envGOPATH, ":")
gopath := gopaths[0]