-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add workspace_prefix_for_pinned_deps #724
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hi @cheister , can you take a look at this change? Thanks! |
Hi @shs96c can you take a look at this? |
Apologies for the slow review on this. Here now! First comment: if you want a prefix, then I'd suggest defaulting to the repository rule's Would that approach work for you? |
Hi, Defaulting the prefix to repo name would be a breaking change for existing users. Also, moving forward, with our use case (and typical use cases of others), we actually want to share the same intermediate artifacts across multiple pinned maven install. So it seems defaulting to BTW, regardless of this change, it does seem that without a prefix, the same What do you think? |
gentile ping @shs96c |
When artifacts are pinned, `maven_install` would create individual external repos for each dependency. The name of such an external repo is simply the maven coordinate with all punctuation replaced by `_`. This can cause name conflicts for code bases that are already using `http_archive` to download thousands of dependencies through some other mechanism but would like to migrate to use `maven_install`. This PR tries to fix this by specifying a prefix for intermediate external repos so that name collision becomes manageable.
Any updates? @shs96c |
When artifacts are pinned,
maven_install
would create individualexternal repos for each dependency. The name of such an external repo is
simply the maven coordinate with all punctuations replaced by
_
. Thiscan cause name conflicts for code bases that are already using
http_archive
to download thousands of dependencies through some othermechanism but would like to migrate to use
maven_install
.This PR tries to fix this by specifying a prefix for intermediate
external repos so that name collision becomes manageable.