-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[CI] Run golangci-lint
with alternate build tags
#11557
Comments
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello everyone. I'd like to try and work on this. What is an example of one of the build tag combinations that would potentially need to be used in a golangci-lint run? |
Based on the PR linked on the original post, the Here are other build tags we use:
Not all of these are relevant but it should give you a starting point. |
I got to this issue after noticing that lint is not been run for Windows. In my quick tests I can't get lint to consider the /cc @mx-psi @djaglowski |
**Description:** Add a lint step to CI with `GOOS=windows`. This will ensure that code for Windows keeps a clean lint pass. Until the lint Go cache is invalidated the step with `GOOS=windows` will be a bit longer than the Linux step. I'm measuring in my fork to see what we should expect after the cache is updated. I had an alternative implementation using Windows runners instead, but, overall it required separated Go caches and many more runners, running on Linux also ensures that the step can also be run by contributors on their dev boxes. **Link to tracking Issue:** Related to #11557 and #27866, but, it doesn't fix any of the two. **Testing:** Validated that the step is passing for all components
**Description:** Add a lint step to CI with `GOOS=windows`. This will ensure that code for Windows keeps a clean lint pass. Until the lint Go cache is invalidated the step with `GOOS=windows` will be a bit longer than the Linux step. I'm measuring in my fork to see what we should expect after the cache is updated. I had an alternative implementation using Windows runners instead, but, overall it required separated Go caches and many more runners, running on Linux also ensures that the step can also be run by contributors on their dev boxes. **Link to tracking Issue:** Related to open-telemetry#11557 and open-telemetry#27866, but, it doesn't fix any of the two. **Testing:** Validated that the step is passing for all components
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
what's the status on this issue ? i can't see if its still needed or what we need to provide |
@led0nk AFAIK nobody has been actively working on this. You may rerun the command on #11557 (comment) (I used ripgrep but grep should also work) to get an initial list of build tag combinations (not all would be applicable) |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Originally posted by @mx-psi in #11440 (comment)
The text was updated successfully, but these errors were encountered: