Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adpi2
Copy link
Collaborator

@adpi2 adpi2 commented Oct 7, 2024

Fix #3085

sbt writes more extra attributes in POM dependencies than it should do. Those attributes mess up the conflict resolution, because Coursier considers that 2 dependencies with different extra attributes are distinct.

See for instance this POM file which contain e:info.apiURL, e:info.versionScheme and e:info.releaseNotesUrl in its extraDependencyAttributes:

<extraDependencyAttributes xml:space="preserve">
+e:info.apiURL:#@#:+https://www.javadoc.io/doc/com.armanbilge/sbt-scala-native-config-brew_2.12/0.3.0/:#@#:
+e:sbtVersion:#@#:+1.0:#@#:
+e:info.releaseNotesUrl:#@#:
+https://github.com/armanbilge/scala-native-config-brew/releases/tag/v0.3.0:#@#:
+module:#@#:+sbt-scala-native-config-brew_2.12_1.0:#@#:
+e:scalaVersion:#@#:+2.12:#@#:$
+e:info.versionScheme:#@#:+early-semver:#@#:
+organisation:#@#:+com.armanbilge:#@#:
+branch:#@#:+@#:NULL:#@:#@#:
+revision:#@#:+0.3.0:#@#:
+e:sbtVersion:#@#:+1.0:#@#:
+module:#@#:+sbt-typelevel-github-actions_2.12_1.0:#@#:
+e:scalaVersion:#@#:+2.12:#@#:
+organisation:#@#:+org.typelevel:#@#:
+branch:#@#:+@#:NULL:#@:#@#:
+revision:#@#:+0.7.0:#@#:
</extraDependencyAttributes>

After sbt/librarymanagement#451, sbt will stop writing those info attributes. As a hot fix for all the POMs that are already published, Coursier can ignore the attributes starting with info..

@adpi2 adpi2 merged commit 6b45808 into coursier:main Oct 7, 2024
23 checks passed
@adpi2 adpi2 mentioned this pull request Oct 8, 2024
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.

Eviction for transitive sbt plugin dependencies not working

2 participants