Skip to content

Fix build rules for Bazel 9#1287

Merged
phlptp merged 2 commits into
CLIUtils:mainfrom
mikael-s-persson:fix/bzl9
Jan 23, 2026
Merged

Fix build rules for Bazel 9#1287
phlptp merged 2 commits into
CLIUtils:mainfrom
mikael-s-persson:fix/bzl9

Conversation

@mikael-s-persson
Copy link
Copy Markdown
Contributor

Fix build rules for Bazel 9

The cc_* rules have to be loaded explicitly from rules_cc now. I tested down to version 7.4.0 and added compatibility constraint (I also checked on main branch, it only works for version >= 7.4.0 too).

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e4ee3af) to head (9ba81a2).
⚠️ Report is 167 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #1287     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files           17        19      +2     
  Lines         4546      5070    +524     
  Branches         0      1087   +1087     
===========================================
+ Hits          4546      5070    +524     

☔ 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.

@phlptp
Copy link
Copy Markdown
Collaborator

phlptp commented Jan 23, 2026

@all-contributors add @mikael-s-persson for platform,infra

@allcontributors
Copy link
Copy Markdown
Contributor

@phlptp

I've put up a pull request to add @mikael-s-persson! 🎉

@phlptp
Copy link
Copy Markdown
Collaborator

phlptp commented Jan 23, 2026

Thank you, I had made a few fixes in one of the other branches for testing but I like this better

@phlptp phlptp merged commit ec9b90f into CLIUtils:main Jan 23, 2026
71 checks passed
@mikael-s-persson
Copy link
Copy Markdown
Contributor Author

Thanks! You might consider a new release and update the central registry (https://registry.bazel.build/modules/cli11).

phlptp pushed a commit that referenced this pull request Jan 23, 2026
Adds @mikael-s-persson as a contributor for platform, infra.

This was requested by phlptp [in this
comment](#1287 (comment))

[skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
@phlptp
Copy link
Copy Markdown
Collaborator

phlptp commented Jan 23, 2026

I am hoping to resolve the module issues and potentially a few others then get another release out soon.

@mikael-s-persson
Copy link
Copy Markdown
Contributor Author

@phlptp I saw the new version and tested it out on some repos with bazel 9, so I created a PR for a new BCR entry: bazelbuild/bazel-central-registry#7884

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.

2 participants