Skip to content
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

[crosslink] add --skip flag #480

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

codeboten
Copy link
Contributor

This allows modules in monorepos to opt out of crosslink. This will be used in mdatagen in the Collector core repo for example, where mdatagen has dependencies on internal collector modules, but we don't want to use replace statements as it breaks the ability to go install mdatagen

Related to open-telemetry/opentelemetry-collector#9281

This allows modules in monorepos to opt out of crosslink. This will be used in mdatagen in the Collector core repo for example, where mdatagen has dependencies on internal collector modules, but we don't want to use replace statements as it breaks the ability to `go install` mdatagen

Signed-off-by: Alex Boten <[email protected]>
@codeboten codeboten requested review from a team and Aneurysm9 January 15, 2024 18:28
Alex Boten added 2 commits January 15, 2024 10:28
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c2a5fde) 63.78% compared to head (75f3d9a) 63.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
+ Coverage   63.78%   63.89%   +0.11%     
==========================================
  Files          39       39              
  Lines        2267     2274       +7     
==========================================
+ Hits         1446     1453       +7     
  Misses        677      677              
  Partials      144      144              

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

Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

I think that crosslink/README.md should be updated.

Also for the current description make it hard to understand the difference between --skip and --exclude.

crosslink/cmd/root.go Outdated Show resolved Hide resolved
Signed-off-by: Alex Boten <[email protected]>
@codeboten
Copy link
Contributor Author

The readme has been updated, PTAL

@codeboten codeboten merged commit 6a6b657 into open-telemetry:main Jan 17, 2024
12 checks passed
@codeboten codeboten deleted the codeboten/crosslink-skip branch January 17, 2024 21:43
@pellared pellared mentioned this pull request Mar 1, 2024
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