Closed matthijskooijman closed 6 years ago
Nice find! I think it should actually use $HOME/go
in that case. Since recent go versions use that as the default GOPATH when it's not set
Ah, good point. It feels a bit fragile to hardcode that in vg
, though, but I don't suppose go
can tell you the default path to use... Perhaps showing a message about this makes sense to make it explicit?
When I activate a workspace using
vg
while myGOPATH
is empty, the newGOPATH
ends in a colon, followed by the original emptyGOPATH
, which confuses go:I realize that using a fully-isolated workspace would work here, but would it perhaps make sense to just ignore the previous GOPATH if it is empty?