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

Fix invalid reference in coursier.bzl #1119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mortenmj
Copy link

coursier.bzl contains a reference which is not compatible with bzlmod. Fixes #1118.

Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! One comment, and it would be very helpful to have a test case to prevent us accidentally introducing a regression once this has landed.

@@ -1364,7 +1364,7 @@ pinned_coursier_fetch = repository_rule(
doc = "Instructions to re-pin the repository if required. Many people have wrapper scripts for keeping dependencies up to date, and would like to point users to that instead of the default.",
),
"excluded_artifacts": attr.string_list(default = []), # only used for hash generation
"_workspace_label": attr.label(default = Label("@//does/not:exist")),
"_workspace_label": attr.label(default = Label("@@//does/not:exist")),
Copy link
Collaborator

Choose a reason for hiding this comment

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

We still need to support Bazel 5 and 6, so this will cause a regression there. I think we need to do something smart to figure out whether or not bzlmod is being used (not just checking the version number), and then Do The Right Thing

Copy link
Collaborator

Choose a reason for hiding this comment

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

The maven_bom.bzl file has a utility method to determine whether we're using bzlmod or not. We might want to lift that out into another file and depend on that.

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.

coursier.bzl contains invalid reference
2 participants