arcticicestudio / snowsaw

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

Prevent `go.mod` file pollution with development dependencies #82

Closed arcticicestudio closed 4 years ago

arcticicestudio commented 4 years ago

Currently when installing development dependencies through mage, the go.mod file will be updated to include the installed packages since this the default behavior of the go get command when running in module mode. To prevent the pollution of the project's Go module definition the module mode should be disabled when installing the dev/build packages. This is a necessary workaround until the Go toolchain is able to install packages globally without updating the module file when the go get command is run from within the project root directory.

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 #85 (278d08e5485b1c8a0de6b5b47ca7dd64ca03e50f)