Skip to content

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

Open
@neckbosov

Description

@neckbosov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions