-
Notifications
You must be signed in to change notification settings - Fork 235
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: Pass additional coursier cli options #1137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will also need to mirror the same changes into the tag classes used for bzlmod
. These can be found in //private/extensions:maven.bzl
.
5f9e7f4
to
30eb9c8
Compare
@@ -338,6 +340,8 @@ def _maven_impl(mctx): | |||
if mod.is_root: | |||
repo["repin_instructions"] = install.repin_instructions | |||
|
|||
repo["additional_coursier_options"] = repo.get("additional_coursier_options", []) + getattr(install, "additional_coursier_options", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very sure I'm doing the right thing, so please let me know if anything missed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is perfect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -338,6 +340,8 @@ def _maven_impl(mctx): | |||
if mod.is_root: | |||
repo["repin_instructions"] = install.repin_instructions | |||
|
|||
repo["additional_coursier_options"] = repo.get("additional_coursier_options", []) + getattr(install, "additional_coursier_options", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is perfect
The primary use case this change tries to solve is passing down
--max-iterations
to coursier because the default value could be too small for certain artifacts.