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

bzlmod #387

Merged
merged 31 commits into from
Nov 17, 2023
Merged

bzlmod #387

merged 31 commits into from
Nov 17, 2023

Conversation

purkhusid
Copy link
Collaborator

@purkhusid purkhusid commented Sep 26, 2023

Adds Bzlmod support to the rules.

Some breaking changes:

  • Requires Bazel 7 due to various fixes that are not in 6 that are required for bzlmod to work properly
  • Users will have to regenerate paket2bazel files. If they were using multiple dependency groups they will now be split up into multiple files.

dotnet/defs.bzl Outdated
"@rules_dotnet//dotnet/private:macos-arm64": "osx-arm64",
"@rules_dotnet//dotnet/private:windows-x64": "win-x64",
"@rules_dotnet//dotnet/private:windows-arm64": "win-arm64",
"//dotnet/private:linux-x64": "linux-x64",
Copy link
Member

Choose a reason for hiding this comment

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

Here and everywhere below, repo-relative labels in macros should be wrapped in Label(...). Otherwise they will be interpreted relative to the BUILD file that is ultimately using them, which is likely not in @rules_dotnet.

examples/MODULE.bazel Outdated Show resolved Hide resolved
@purkhusid purkhusid merged commit c698c28 into master Nov 17, 2023
1 check passed
@purkhusid purkhusid deleted the bzlmod branch November 17, 2023 00:54
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