Skip to content

Repin required after bazel clean when using maven boms with coursier #1328

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

Open
neckbosov opened this issue Feb 12, 2025 · 2 comments
Open

Comments

@neckbosov
Copy link

neckbosov commented Feb 12, 2025

how to reproduce:

  1. Create project with rules_jvm_external 6.7.
  2. Add maven.install with maven bom (e.g "org.springframework.boot:spring-boot-dependencies:3.4.2")
  3. Run REPIN=1 bazel run @maven//:pin and update lock file for maven.install.
  4. Run bazel clean --expunge
  5. Run bazel build //...

You will see error about unpinned artifact and advice to re-pin.

Cause:
Empty boms list passed here which causes discrepancies of hash calculations between fetch and pin.

@neckbosov
Copy link
Author

Any reaction? @shs96c

@joca-bt
Copy link
Contributor

joca-bt commented Apr 1, 2025

Seems specific to coursier as maven doesn't have this issue. cc @protocol7

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

No branches or pull requests

2 participants