dev: upload debs and rpms to Packagecloud #4010
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Keeping local installs of golangci-lint on Linux systems up to date is a bit of a chore, because building from source is not recommended (so tools like
gup
won't help), and the binaries are not easily available for automatic installation, need to manually download and install from GH releases.Since the .deb and .rpm packages are already available, it would be nice to have them in a public repo somewhere. This PR implements uploading them to https://packagecloud.io (I have no affiliation with them).
Demo release and repository created by this PR's content (along with some tweaks to avoid golangci specific things):
(The packages in the repo are built off a branch that has also dev: packaging improvements #4009 applied, but that's not a blocker for this.)
To make it work for the golangci/golangci-lint project, the PR requires two things set up by golangci-lint project admins:
golangci
, and the repo namegolangci-lint
. If they end up being something else, we can obviously adjust here. But I think they would make sense.PACKAGECLOUD_TOKEN
.