Glide: Glide requires $GOPATH, but Go 1.8 doesn't

Created on 19 Feb 2017  路  4Comments  路  Source: Masterminds/glide

Glide should use the default of $HOME/go if not set.

Most helpful comment

$ glide install
[ERROR] $GOPATH is not set.

$ glide -v
glide version v0.12.3

go version go1.8.3 linux/amd64

Ubuntu 14.04.5 LTS

All 4 comments

I wonder if we could use go env GOPATH if the GOPATH env var is empty. That may give us the right result.

I am using go env in Makefiles for similar reasons, and can confirm that it gives the correct results under 1.8 when $GOPATH is not set :)

There's a PR for this on #798

$ glide install
[ERROR] $GOPATH is not set.

$ glide -v
glide version v0.12.3

go version go1.8.3 linux/amd64

Ubuntu 14.04.5 LTS
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jianchen2580 picture jianchen2580  路  6Comments

bestofmukul picture bestofmukul  路  5Comments

hlltarakci picture hlltarakci  路  4Comments

diwakergupta picture diwakergupta  路  6Comments

marioluan picture marioluan  路  3Comments