diff options
Diffstat (limited to 'cmd/ponzu/usage.go')
-rw-r--r-- | cmd/ponzu/usage.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/ponzu/usage.go b/cmd/ponzu/usage.go index fd289cf..939b0c0 100644 --- a/cmd/ponzu/usage.go +++ b/cmd/ponzu/usage.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "io/ioutil" - "os" "path/filepath" "time" ) @@ -180,7 +179,10 @@ func ponzu(isCLI bool) (map[string]interface{}, error) { info := filepath.Join("cmd", "ponzu", "ponzu.json") if isCLI { - gopath := os.Getenv("GOPATH") + gopath, err := getGOPATH() + if err != nil { + return nil, err + } repo := filepath.Join(gopath, "src", "github.com", "ponzu-cms", "ponzu") info = filepath.Join(repo, "cmd", "ponzu", "ponzu.json") } |