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

Pass the workspace name as an attribute #315

Merged
merged 2 commits into from
Feb 6, 2023
Merged

Pass the workspace name as an attribute #315

merged 2 commits into from
Feb 6, 2023

Conversation

aherrmann
Copy link
Member

This is needed for bzlmod compatibility where the repository_ctx only exposes the mangled name (e.g. _main~non_module_deps~nixpkgs), but nixpkgs_local_repository and others require the unmangled name (e.g. nixpkgs).

repository rules are converted into macros so that users don't need to manually specify the unmangled_name attribute.

This is needed for bzlmod compatibility where the repository_ctx only
exposes the mangled name, but nixpkgs_local_repository and others
require the unmangled name.

repository rules are converted into macros so that users don't need to
manually specify the unmangled_name attribute.
@aherrmann aherrmann requested a review from avdv February 3, 2023 10:14
Copy link
Member

@avdv avdv left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@aherrmann aherrmann added the merge-queue merge on green CI label Feb 6, 2023
@mergify mergify bot merged commit f4d53b8 into master Feb 6, 2023
@mergify mergify bot deleted the unmangled-name branch February 6, 2023 13:56
@mergify mergify bot removed the merge-queue merge on green CI label Feb 6, 2023
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