Skip to content

chore: move Go tools into a separate module - #6824

Merged
arkodg merged 4 commits into
envoyproxy:mainfrom
shahar-h:go-tools-separation
Aug 22, 2025
Merged

arkodg merged 4 commits into
envoyproxy:mainfrom
shahar-h:go-tools-separation

Conversation

@shahar-h

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR moves all Go tools into a separate module under tools/go.mod.
The purpose of this change is to isolate tool dependencies from the main module, keeping the primary go.mod focused only on runtime requirements.

Motivation:

  • Go MVS issue: Tool dependencies pulled into the main go.mod can affect the module’s version selection (MVS) and cause conflicts with actual runtime dependencies(See (2) here).
  • License scan noise: Including tools in the main module causes license scanner (osv-scanner) to report on tool dependencies that are not actually shipped with or used by the application(See related issue comment).

Related issues: #4945 #6213

Release Notes: No

@shahar-h
shahar-h requested a review from a team as a code owner August 20, 2025 10:45
Comment thread tools/go.mod Resolved
@codecov

codecov Bot commented Aug 20, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.08%. Comparing base (aee4b91) to head (e5077e8).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6824      +/-   ##
==========================================
+ Coverage   71.07%   71.08%   +0.01%     
==========================================
  Files         225      225              
  Lines       39810    39810              
==========================================
+ Hits        28293    28298       +5     
+ Misses       9852     9847       -5     
  Partials     1665     1665              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Shahar Harari <[email protected]>
Signed-off-by: Shahar Harari <[email protected]>
@shahar-h

Copy link
Copy Markdown
Contributor Author

@zirain can you please review?

@arkodg arkodg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg
arkodg merged commit 67f38b1 into envoyproxy:main Aug 22, 2025
@shahar-h
shahar-h deleted the go-tools-separation branch August 22, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants