pulumi / kubespy

Tools for observing Kubernetes resources in real time, powered by Pulumi.
https://pulumi.com/
Apache License 2.0
2.89k stars 92 forks source link

Improve Go module support in Makefile #54

Closed lblackstone closed 5 years ago

lblackstone commented 5 years ago

@hausdorff The GO111MODULE=on statement makes these commands work whether or not they are executed within a GOPATH. The GOPROXY statement downloads deps from a proxy rather than hitting all of the individual repos, and go mod tidy updates the dependency list and pulls modules as necessary.

hausdorff commented 5 years ago

I believe go mod tidy does not actually work in GOPATH? At least, not on my machine. In GOPATH I find I have to run go mod vendor

lblackstone commented 5 years ago

@hausdorff Right, it won't work unless you set the GO111MODULE=on env var. It will work either way with that.