-
Notifications
You must be signed in to change notification settings - Fork 131
Add new workflow to check for golangci-lint releases #756
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
Add new workflow to check for golangci-lint releases #756
Conversation
i think since we are using the golangci-lint github action dependabot will automatically check for new versions of that? i would also try to only run this once a day, once an hour seems a bit much if we do go forward with it |
Since we’re using the
Regarding the schedule: running this workflow once per hour might seem frequent, but it doesn’t cost us anything. The benefit of checking hourly is that we avoid situations like #754, where we fell behind on updates. If a new release issue is created, we can treat it as a priority before merging other PRs that day. Also worth noting: the workflow will only ever create one issue per release, so the frequency of the cron job won’t result in duplicates. I’m in favor of having a dedicated workflow for this and running it hourly, but I’m open to other suggestions if the team feels differently. |
if we want to use the latest version of golangci-lint we can just set the action version to latest as well *this still means we have to manage our own local versions, but we were doing that anyway |
sure that works but I am not a fan of @kpfleming please weigh in on this and make a decision how we want to move forward. Thanks |
we could also add |
@anthony-gomez-fastly yes, that's a good idea with the |
Dependabot can't handle this for us because the golangci-lint Action has a separate versioning scheme from golangci-lint itself; the Action is currently at version 8.0.0 while the tool is at version 2.4.0. Dependabot will tell us about new versions of the Action, but not new versions of the tool. The only way that Dependabot could tell us about new versions of the tool would be for it to be listed in I think the best course of action may be to pin the version of golangci-lint in every place that we use it (including in |
I'll close this one out in favor of #757. |
Change summary
It's important to keep up with the latest and greatest of golangci-lint in order to prevent breaking changes for linting issues as experienced in #754.
This PR adds a new workflow/cron job which checks for new releases every hour. If a new release is detected the workflow works as follows:
That issue stays open until a team member opens a pull request with a dependency bump which references it and closes it automatically.
If we as a team agree on this new workflow the plans is to transfer the same workflow to all of our
Go
projects which use golangci-lint.All Submissions: