tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.54k stars 454 forks source link

warning about GO15VENDOREXPERIMENT showing up even though it's not set #433

Closed shawnps closed 8 years ago

shawnps commented 8 years ago

Hi,

I get this error every time I invoke godep now:

godep: WARNING: Go version (go1.6) & $GO15VENDOREXPERIMENT= wants to enable the vendor experiment, but disabling because a Godep workspace (Godeps/_workspace) exists

but $GO15VENDOREXPERIMENT is not set:

➜  ~ echo $GO15VENDOREXPERIMENT
shawnps commented 8 years ago

I see I can do

export GO15VENDOREXPERIMENT=0 and it will go away, but for new terminals of course the warning will still show up unless I explicitly put export GO15VENDOREXPERIMENT=0 into my shell rc.

I'm guessing this is why:

(v == "go1.6" && go15ve != "0")

I'm fine putting export GO15VENDOREXPERIMENT=0 into my shell rc for now, so feel free to close this if you'd prefer not to take action on it.

freeformz commented 8 years ago

This warning is there to tell you that your combo version of go and config vars is telling godep to use the vendor experiment, but godep disables it because it found an existing old style godep workspace.

Exporting GO15VENDOREXPERIMENT=0 disables the vendor experiment, so the warning goes away.

Maybe I should make the warning clearer somehow?

Sent from my iPhone

On Mar 10, 2016, at 22:40, Shawn Smith notifications@github.com wrote:

I see I can do

export GO15VENDOREXPERIMENT=0 and it will go away, but for new terminals of course the warning will still show up unless I explicitly put export GO15VENDOREXPERIMENT=0 into my shell rc.

I'm guessing this is why:

(v == "go1.6" && go15ve != "0")

I'm fine putting export GO15VENDOREXPERIMENT=0 into my shell rc for now, so feel free to close this if you'd prefer not to take action on it.

— Reply to this email directly or view it on GitHub.

shawnps commented 8 years ago

@freeformz it's okay, I just thought that not having the GO15VENDOREXPERIMENT set at all should be the same as having it set to GO15VENDOREXPERIMENT=0. No worries.