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

Track whether a repo is pinned or unpinned by explicit attr #1204

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

plobsing
Copy link
Contributor

Doing this by performing string interpretation on the repo name is a bit
brittle. And it works less well under Bzlmod where the unpinned repo
name is going to look something like
rules_jvm_external~~maven~unpinned_maven.

After this change, the lockfile pinning script, @maven//:pin will use the local
machine's Coursier cache (~/Library/Caches/Coursier on MacOS) even under
Bzlmod. A populated cache makes version resolutions substantially faster to obtain.

Doing this by performing string interpretation on the repo name is a bit
brittle. And it works less well under Bzlmod where the unpinned repo
name is going to look something like
`rules_jvm_external~~maven~unpinned_maven`.

After this change, the lockfile pinning script, `@maven//:pin` will use the local
machine's Coursier cache (`~/Library/Caches/Coursier` on MacOS) even under
Bzlmod. A populated cache makes version resolutions substantially faster to obtain.
@kolloch
Copy link

kolloch commented Jul 24, 2024

I tested (but did not review in depth) your changes and it does speed things up signifincatly.

Thank you.

private/extensions/maven.bzl Outdated Show resolved Hide resolved
Tab added by misconfigured editor.
@Wyverald Wyverald merged commit 1c5f2eb into bazel-contrib:master Jul 26, 2024
8 of 9 checks passed
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.

3 participants