3 ms·
The default value of that environment variable is auto. If you don't set anything, and you are inside GOPATH, module mode is disabled. If you are outside GOPAT
by agnivade 8y ago
The default value of that environment variable is auto.
If you don't set anything, and you are inside GOPATH, module mode is disabled. If you are outside GOPATH, module mode is enabled.
I think that is the most sane behavior. And this flag is needed because modules are an experimental feature.
How else do you recommend to release experimental features ?
- giancarlostoro 8y agoIt wasn't auto in my case because I was getting errors till I defined it in Windows 10.
- agnivade 8y agoI mean that if it isn't set, the behavior is the same as auto. If you weren't getting "auto" behavior, then it's a bug. Please feel free to file an issue.