arcticicestudio / snowsaw

A lightweight, plugin-driven and dynamic dotfiles bootstrapper.
MIT License
98 stars 8 forks source link

Development dependency global installation workaround #88

Closed arcticicestudio closed 4 years ago

arcticicestudio commented 4 years ago

The workaround implemented in #82 (PR #85) worked fine, but due to the explicitly disabled module mode it is not possible to define pinned dependency versions but only using the normal go get behavior to build the repositories default branch.

A better workaround is to run the go get command for development & build dependencies/packages outside of the project's root directory. Therefore the go.mod file is not in scope for the go get command and is therefore not updated. In order to use pinned versions the GO1111MODULE=on environment variable must be explicitly set when running the go get command.

See https://github.com/golang/go/issues/30515 for more details and proposed solutions that might be added to Go's build tools in future versions.

arcticicestudio commented 4 years ago

Resolved in #89 (213111d3b2ae8ff10f3175cf0d062f508a48d400)