Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download the same dependency with and without classifier simultaneously #3337

Open
lego-eden opened this issue Nov 30, 2024 · 0 comments
Labels
bug Something isn't working coursier Issues tied with coursier integration. dependency management Issues tied to how the CLI manages project dependencies. using directives Issues tied with using directives.

Comments

@lego-eden
Copy link

lego-eden commented Nov 30, 2024

Version(s)
1.4.3 and 1.5.0. These are the versions i have installed.

Describe the bug
If you add dependencies as below you will get the jar files for the first 4 dependencies, but not ones with a classifier.

//> using dep org.lwjgl:lwjgl:3.3.4
//> using dep org.lwjgl:lwjgl-glfw:3.3.4
//> using dep org.lwjgl:lwjgl-openal:3.3.4
//> using dep org.lwjgl:lwjgl-opengl:3.3.4
//> using dep "org.lwjgl:lwjgl:3.3.4,classifier=natives-windows"
//> using dep "org.lwjgl:lwjgl-glfw:3.3.4,classifier=natives-windows"
//> using dep "org.lwjgl:lwjgl-openal:3.3.4,classifier=natives-windows"
//> using dep "org.lwjgl:lwjgl-opengl:3.3.4,classifier=natives-windows"

If you switch them around you instead get the jar files with the classifiers and not the ones without.

//> using dep "org.lwjgl:lwjgl:3.3.4,classifier=natives-windows"
//> using dep "org.lwjgl:lwjgl-glfw:3.3.4,classifier=natives-windows"
//> using dep "org.lwjgl:lwjgl-openal:3.3.4,classifier=natives-windows"
//> using dep "org.lwjgl:lwjgl-opengl:3.3.4,classifier=natives-windows"
//> using dep org.lwjgl:lwjgl:3.3.4
//> using dep org.lwjgl:lwjgl-glfw:3.3.4
//> using dep org.lwjgl:lwjgl-openal:3.3.4
//> using dep org.lwjgl:lwjgl-opengl:3.3.4

The classpaths do not contain both of the versions of the jar files.

To Reproduce
Add the above code to a file project.scala and then run scala compile project.scala --print-classpath to verify which jars where included.

Expected behaviour
I expected both the "normal" jar and the "classified" version of the jar to be included when writing the above code. Not one or the other.

@lego-eden lego-eden added the bug Something isn't working label Nov 30, 2024
@lego-eden lego-eden changed the title Cannot download dependencies with classifier and without classifier simultanously Cannot download the same dependency with and without classifier simultaneously Nov 30, 2024
@Gedochao Gedochao added using directives Issues tied with using directives. coursier Issues tied with coursier integration. dependency management Issues tied to how the CLI manages project dependencies. labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working coursier Issues tied with coursier integration. dependency management Issues tied to how the CLI manages project dependencies. using directives Issues tied with using directives.
Projects
None yet
Development

No branches or pull requests

2 participants