rules_jvm_external
rules_jvm_external copied to clipboard
Strip username from pinned urls
As described in #574 there is a situation where we depend on a private repository which requires authentication, and that authentication is provided through coursier properties files. In this case it's not ideal that the username of the person who performed a pinning is present in both the file and url attributes stored in the pinned json file. This creates quite a bit of noise when reviewing changes.
This PR attempts to clean away this string without affecting other authentication flows. I'm fairly new to starlark and this project in particular so it's very possible that I've overlooked potential side effects. PTAL
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.
Does this work when using an unpinned maven repo that requires authentication?
I ran some more test and I updated my WORKSPACE so that I had
- A repo which was unpinned targeting "https://repo1.maven.org/maven2"
- A repo which was unpinned targeting a private repository
- A repo which was pinned targeting "https://repo1.maven.org/maven2"
- A repo which was pinned targeting a private repository
All repos could be fetched, even after a bazel clean --expunge
.