You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to 6.4, when trying to pin artifacts, bazel reported the following error:
ERROR: An error occurred during the fetch of repository 'rules_jvm_external~~maven~unpinned_maven':
Traceback (most recent call last):
File "external/rules_jvm_external~/private/rules/coursier.bzl", line 1077, column 84, in _coursier_fetch_impl
artifact.update({"file": _relativize_and_symlink_file_in_coursier_cache(repository_ctx, artifact["file"], coursier_cache_path)})
File "external/rules_jvm_external~/private/rules/coursier.bzl", line 231, column 31, in _relativize_and_symlink_file_in_coursier_cache
repository_ctx.symlink(absolute_path, repository_ctx.path(artifact_relative_path))
Error in symlink: java.io.IOException: Could not create symlink <skipped> (File exists)
After investigation, I found that 2 of my dependencies were transitively depending on the same maven artifact, one with explicit jar packaging and one without (default to pom), specifically:
org.jetbrains.kotlinx:kotlinx-coroutines-core:jar:1.7.3 (note the :jar)
And the introduction of 8388bef, such case will cause a duplicate entry in the dep_tree since both entries for the pom and the jar coordinates of the same artifact will both have their file point the the same .jar.
Description
After updating to
6.4
, when trying to pin artifacts, bazel reported the following error:After investigation, I found that 2 of my dependencies were transitively depending on the same maven artifact, one with explicit
jar
packaging and one without (default topom
), specifically:org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3
org.jetbrains.kotlinx:kotlinx-coroutines-core:jar:1.7.3
(note the:jar
)And the introduction of 8388bef, such case will cause a duplicate entry in the
dep_tree
since both entries for thepom
and thejar
coordinates of the same artifact will both have their file point the the same.jar
.rules_jvm_external/private/rules/coursier.bzl
Lines 955 to 958 in 8388bef
The text was updated successfully, but these errors were encountered: