Skip to content

Conversation

@paulojmdias
Copy link
Member

Description

This PR ensures we use the same modernize package as golanglint

@paulojmdias paulojmdias requested a review from a team as a code owner November 17, 2025 21:23
@github-actions github-actions bot added the release:risky-change This change may affect the release label Nov 17, 2025
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.23%. Comparing base (5adc149) to head (4f76246).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14175      +/-   ##
==========================================
- Coverage   92.25%   92.23%   -0.03%     
==========================================
  Files         658      658              
  Lines       41186    41186              
==========================================
- Hits        37998    37986      -12     
- Misses       2182     2190       +8     
- Partials     1006     1010       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Makefile.Common Outdated
$(GOCMD) run \
golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest \
-fix -test -v ./...
golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using go run here, how about we add the package as a tools dependency and use it like the several other tools we already use?
That would allow us to lock into a specific version rather than using latest.

Copy link
Member Author

@paulojmdias paulojmdias Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads-up @dmathieu 🙏

Makes total sense, done in 732b1f3

…s/opentelemetry-collector into chore/use_golanglint_analyzer

Signed-off-by: Paulo Dias <[email protected]>
Signed-off-by: Paulo Dias <[email protected]>
Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed working locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:risky-change This change may affect the release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants