-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add go install directions for Go 1.16+ #360
Conversation
- Provide `go install` command as option for those running Go 1.16+. [docs](https://golang.org/ref/mod#go-install)
So the only problem with that is that it doesn't build in the mage version info. ideally, people wouldn't install that way, because it makes it harder to debug problems without that build info. |
Would you have any interest in adding something like https://github.com/goreleaser/goreleaser to enable installs? This should be able to keep versions and maybe meet a similar desire to go install. |
@alock goreleaser is just a tool for building and pushing various distribution methods. It provides a nice way to automate different distribution methods like hombrew, curl single line install scripts, docker images, and stuff like that. Not really solving the same issue I was trying to provide by just adding the native go install technique. @natefinch the version metadata could be set to the git commit sha when not provided by a semver version. Would that be acceptable? Go install just provides a really low overhead cross platform way to install this so figured would be worth trying. |
+1. I think mage would be better served by having homebrew/apt/$PACKAGE_MANAGER packages and including install instructions for those, instead of asking people to install via the Edit: one idea that would be fairly easy to start with - provide install instructions for |
We can look at that. Makes sense to have a curl install option. However, considering go install solves cross platform setup for Go devs without any need to worry about handling packaging/release of binaries, I thought it was worth considering. I bootstrap all my dev environments with a range of I guess this can be closed out. |
@sheldonhull fair enough. at some point in the future, |
brew install is probably good to have |
@natefinch it already exists - see here and here - but I can't see who owns it and how does it get updated |
go install
command as option for those running Go 1.16+.docs