-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
- Classifiers may have values other than "native". - Artifact.type is a String, not an Option[String]. - Fill in missing tests.
I'm concerned this is making it overly lax. I'd be happy to add But I'm open to being convinced. |
The classifier is defined by the artifact. It has no intrinsic meaning. We would potentially have to keep adding exceptions case-by-case. |
If it does blow up, how else would we handle it, other than by creating a new exception here? |
Classifiers have meaning, otherwise why would they exist? They come from If we want to add a way (e.g. a callback thingy) to allow downstream builds to handle it, then that would be fine for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed my mind. The metadata must flow. And we'll pick up the pieces if it ends up being a mistake.
Thanks, @dwijnand. What I meant by that is that the meaning is ascribed by the author of the library that uses it. The string "native" isn't magic, it's just what the It would be better if you could include all classifiers, because indeed these might contain different code, but I assume that would require changes on Whitesource's side to track libraries at that level of granularity. |
It might cause a problem, but as far as their programmatic API goes you can set the classifier - which is why it's even being touched here. So we could, if we wanted to, get this plugin out of the business of trying to sanitise the data and handle dedup within Whitesource. But that's not necessary for now. |
Without this Travis CI was failing: https://travis-ci.org/github/sbt/zinc/jobs/671727552 [error] Caused by: java.lang.RuntimeException: Multiple elements for the same key (org.scala-lang.modules,scala-xml_2.12): [error] ModuleInfo(org.scala-lang.modules,scala-xml_2.12,1.2.0,Some((Artifact(scala-xml_2.12, bundle, jar, None, Vector(), Some(https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar), Map(), None, false),/home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar))) [error] ModuleInfo(org.scala-lang.modules,scala-xml_2.12,1.2.0,Some((Artifact(scala-xml_2.12, bundle, jar, None, Vector(), Some(https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar), Map(), None, false),/home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar))) [error] at scala.sys.package$.error(package.scala:30) [error] at sbtwhitesource.package$KeyByAndMergeSyntax$.$anonfun$keyByAndMerge$2(package.scala:26) This brings in the following 2 fixes: * lightbend/sbt-whitesource#68 * lightbend/sbt-whitesource#70
Without this Travis CI was failing: https://travis-ci.org/github/sbt/zinc/jobs/671727552 [error] Caused by: java.lang.RuntimeException: Multiple elements for the same key (org.scala-lang.modules,scala-xml_2.12): [error] ModuleInfo(org.scala-lang.modules,scala-xml_2.12,1.2.0,Some((Artifact(scala-xml_2.12, bundle, jar, None, Vector(), Some(https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar), Map(), None, false),/home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar))) [error] ModuleInfo(org.scala-lang.modules,scala-xml_2.12,1.2.0,Some((Artifact(scala-xml_2.12, bundle, jar, None, Vector(), Some(https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar), Map(), None, false),/home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar))) [error] at scala.sys.package$.error(package.scala:30) [error] at sbtwhitesource.package$KeyByAndMergeSyntax$.$anonfun$keyByAndMerge$2(package.scala:26) This brings in the following 2 fixes: * lightbend/sbt-whitesource#68 * lightbend/sbt-whitesource#70
Without this Travis CI was failing: https://travis-ci.org/github/sbt/zinc/jobs/671727552 [error] Caused by: java.lang.RuntimeException: Multiple elements for the same key (org.scala-lang.modules,scala-xml_2.12): [error] ModuleInfo(org.scala-lang.modules,scala-xml_2.12,1.2.0,Some((Artifact(scala-xml_2.12, bundle, jar, None, Vector(), Some(https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar), Map(), None, false),/home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar))) [error] ModuleInfo(org.scala-lang.modules,scala-xml_2.12,1.2.0,Some((Artifact(scala-xml_2.12, bundle, jar, None, Vector(), Some(https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar), Map(), None, false),/home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.2.0/scala-xml_2.12-1.2.0.jar))) [error] at scala.sys.package$.error(package.scala:30) [error] at sbtwhitesource.package$KeyByAndMergeSyntax$.$anonfun$keyByAndMerge$2(package.scala:26) This brings in the following 2 fixes: * lightbend/sbt-whitesource#68 * lightbend/sbt-whitesource#70
Ref:
master
builds fail on whitesource with duplicate artifact lagom/lagom#2331