Repository navigation
C#: Add patched rules_dotnet 0.23.0 to the local registry - #23261
Draft
michaelnebel wants to merge 2 commits into
Draft
michaelnebel wants to merge 2 commits into
michaelnebel wants to merge 2 commits into
Conversation
rules_dotnet 0.23.0 to the local registry
Keep the existing NuGet archive patch through a single-version override and retain the .NET 11.0.100 SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
michaelnebel
force-pushed
the
michaelnebel-rules-dotnet-0-23-codeql
branch
from
November 26, 2026 14:19
e949852 to
d5533cb
Compare
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The upstream upgrade changes compiler and NuGet behavior affecting C# extractor builds and self-contained publishing, requiring compatibility validation in the full build context beyond the reported utility tests.
No open issues 🎉
What changed in this PR
Moves the C# build dependency from a Git override to the released rules_dotnet 0.23.0, packaged in the local Bazel registry as 0.23.0-codeql.1.
Changes:
- Adds the registry module, release archive metadata, and version patch.
- Preserves the existing NuGet archive guard, rebased onto 0.23.0.
- Removes the Git override and obsolete patch package; leaves the .NET SDK unchanged.
| File | Description |
|---|---|
MODULE.bazel |
Selects the patched registry version and removes the Git override. |
misc/bazel/registry/modules/rules_dotnet/metadata.json |
Lists the locally patched release. |
misc/bazel/registry/modules/rules_dotnet/0.23.0-codeql.1/source.json |
Defines the release archive and patch integrity hashes. |
misc/bazel/registry/modules/rules_dotnet/0.23.0-codeql.1/patches/rules_dotnet_nuget_archive.patch |
Relocates and rebases the existing NuGet archive guard. |
misc/bazel/registry/modules/rules_dotnet/0.23.0-codeql.1/patches/module_dot_bazel_version.patch |
Sets the archive’s module version to the local patched version. |
misc/bazel/registry/modules/rules_dotnet/0.23.0-codeql.1/MODULE.bazel |
Adds the patched release’s module definition. |
misc/bazel/patches/BUILD.bazel |
Deletes the obsolete patch-export package. |
Review effort: Balanced (adaptive)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Use
rules_dotnetversion 0.23.0 and introduce a patched version.Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
d5533cb161e6a8bf1734aade8ee35fb1666d1eee↑ Fetched rules_dotnet reports version 0.23.0-codeql.1 and contains the
len(parts) > 3guard.↑ Conflict-free rebase onto main
6d6871d2ea1e029394d213ad56155fd871d670d9; range-diff confirms both patches unchanged; uncachedSemmle.Util.Tests(32 tests) and buildifier pass after rebase.↓ Extractor binaries and other C# test suites need a dependency absent from the standalone build, so they are unverified here.
Upgrade rules_dotnet to the released 0.23.0, packaged as a locally patched module
0.23.0-codeql.1inmisc/bazel/registry, following the same pattern previously used for0.22.2-codeql.1.misc/bazel/registry/modules/rules_dotnet/0.23.0-codeql.1/uses the v0.23.0 release archive with two patches:module_dot_bazel_version.patchsets the module version to0.23.0-codeql.1.rules_dotnet_nuget_archive.patchadds theif len(parts) > 3: returnguard in_process_group_with_tfm(the same change previously applied viagit_override, rebased onto 0.23.0).MODULE.bazeldepends onrules_dotnet0.23.0-codeql.1; thegit_overrideis removed, along with the now-unusedmisc/bazel/patchespackage.11.0.100).Validation:
0.23.0-codeql.1and contains the guard.bazel test --nocache_test_results //csharp/extractor/Semmle.Util.Tests:utpasses (32 tests), rerun after rebasing onto main.bazel run //misc/bazel/buildifier -- --mode=check MODULE.bazelpasses, rerun after rebasing onto main.