-
Notifications
You must be signed in to change notification settings - Fork 267
Update README w/ install instructions for v2.0 #418
Comments
Yes, good call. |
Please post the new instructions. Also, would you be able to include how to install this using Gradle? I'm using Gradle for build process using following gogradle plugin. https://github.com/gogradle/gogradle I'd like to include gometalinter into the overall build process. But, not sure how to set it up. In our CI/CD process, I won't have access to "install" this on the build machines. Even golang is being setup by the build process using gogradle in a temporary location. |
@amimas I can't provide instructions on how to install gometalinter with every CI, that is impractical. |
Definitely agree that it's impractical to provide instructions for every CI. I mentioned about Gradle because that's a very robust build tool than Ant or Maven. It's not necessarily CI. Maybe I'll be able to figure out how to use it with Gradle once the updated instructions for v2 is available. Thanks |
Having a small shell script like goreleaser is using would go a long way without having to cater to any specific CI. |
Hopefully this is helpful, https://github.com/goreleaser/godownloader Also, IIRC, goreleaser makes it easy to make and automatically update a homebrew tap repository, if interested. That way folks can use homebrew to automatically install and keep things up-to-date easily. |
I did look at
|
That's very sick. So now it's recommended to use precompiled binaries BUT there's no generic instructions for installation and usage. |
@gudvinr The old way still works fine, but thanks for your constructive input. |
@alecthomas Thanks for the reply. I'm sorry that my response sounds rude a bit. But to be honest it's really annoying that one should digging into setup process of tools that supposed to make development process easier. |
There will be instructions added once there's an automated solution. Until then you can continue to use the instructions in the README. |
for those who might want a godownloader script - i used the generator and then hacked it. which i realize is bad practice, but yeah. (probably only supports linux and osx too) |
The simplest hack, if you need one:
|
It does now. See the discussion in goreleaser/godownloader#52 |
@autarch That's awesome, though it looks like there are still a couple of kinks. Once those are fixed I'll make a downloader available. Thanks for creating that issue BTW. |
Is there a way to always download the latest release of the binary package? Due to the version encoding in the file name I wouldn't know how. |
README will be updated once the script is verified as working widely.
goreleaser/godownloader now both support multiple binaries. I've added the script. Please test with: $ export BINDIR=<directory-in-your-$PATH>
$ curl -L https://git.io/vp6lP | bash eg. $ curl -L https://git.io/vp6lP | BINDIR=${GOPATH=$HOME/go}/bin bash |
I see the release notes for v2.0 mention that the new direction is to release binaries (including bundled linters).
What’s not clear to me is how this change impacts the recommended way to install gometalinter. Is
go get
going to be deprecated? Should we just download the binaries and place them on our$PATH
? Does the linters directory also need to be in the path or is gometalinter smart enough to look there for tools to exec?It would be nice if we could update the install and quick start sections of the README to reflect the latest recommendations.
The text was updated successfully, but these errors were encountered: