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

feat(pin): allow only repinning the rules_jvm_external lockfile #555

Merged
merged 2 commits into from
May 12, 2021

Conversation

gibfahn
Copy link
Contributor

@gibfahn gibfahn commented May 4, 2021


Commits (oldest to newest)

d49ec1f feat(pin): allow only repinning the rules_jvm_external lockfile

Now that rules_rust and rules_jvm_external both support the same
repinning method, make it possible to choose to repin a single lockfile
or all lockfiles.

Refs: bazelbuild/rules_rust#682


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.

Thanks @gibfahn! Once the tests pass, I'll happily merge this in.

coursier.bzl Outdated
@@ -337,7 +337,8 @@ def _fail_if_repin_required(repository_ctx):
if not repository_ctx.attr.fail_if_repin_required:
return False

return "REPIN" not in repository_ctx.os.environ.keys()
env_var_names = repository_ctx.os.environ.keys()
return "RULES_JVM_EXTERNAL_REPIN" not in env_var_names and "REPIN" not in env_var_names:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line is causing the tests to fail because of the trailing :

Now that rules_rust and rules_jvm_external both support the same
repinning method, make it possible to choose to repin a single lockfile
or all lockfiles.

Refs: bazelbuild/rules_rust#682
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.

CI is green. Thank you, @gibfahn!

@shs96c shs96c merged commit 8feca27 into bazelbuild:master May 12, 2021
@gibfahn gibfahn deleted the repin_specific branch May 14, 2021 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants