Skip to content

Error in fail: Found duplicate artifact versions (gson, error_prone_annotations, guava) when bumping rules_jvm_external from 6.8 to 6.9 #1453

@vorburger

Description

@vorburger

To test #1181, I'm adding:

git_override(
    module_name = "rules_jvm_external",
    remote = "https://github.com/bazelbuild/rules_jvm_external",
    commit = "7a7d0383e585cbbab5d69dce65b0d90ee84ce3ed",
)

after bazel_dep(name = "rules_jvm_external", version = "6.8") in my MODULE.bazel, but it's causing enola-dev/enola#1831:

Error in fail: Found duplicate artifact versions
    com.google.code.gson:gson has multiple versions 2.13.1, 2.8.9
    com.google.errorprone:error_prone_annotations has multiple versions 2.41.0, 2.5.1
    com.google.guava:guava has multiple versions 33.4.8-jre, 32.0.1-jre
Please remove duplicate artifacts from the artifact list so you do not get unexpected artifact versions

I don't understand where these are coming from, nor how / where to remove them... how can the bump of rules_jvm_external cause this?

Smells like old #934 and #1168 ?

@vinnybod @shs96c

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