mirror of https://github.com/linkerd/linkerd2.git
The `linkerd install` output relies on Helm templates in the `chart` directory. In production cli builds, these templates are compiled into the binary. In development, they are read from the file system. This development code path relied on GOPATH to determine the location of the `chart` directory. In anticipation of Go Modules support (#1488), we cannot assume the repo is within the GOPATH. This change removes the GOPATH dependency, and instead relies on `runtime.Caller` to determine the root of the code repo. This change only affects development (!prod) builds. Prerequisite to #1488. Signed-off-by: Andrew Seigner <siggy@buoyant.io> |
||
---|---|---|
.. | ||
generate.go | ||
templates.go |