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

cs fetch how to skip transitive dependencies #2873

Open
mantovani opened this issue Nov 10, 2023 · 2 comments
Open

cs fetch how to skip transitive dependencies #2873

mantovani opened this issue Nov 10, 2023 · 2 comments

Comments

@mantovani
Copy link

Hello Coursier team,

Is it possible to use cs fetch --classpath to skip downloading transitive libraries? One real-world example is when I'm using a third-party Apache Spark dependency like the Almaren Framework. In such cases, I don't want to download the Spark and Scala JARs because they are already included in the JARs. Having an option like cs fetch --skip-transitive would be perfect.

Thank you very much.

@tgodzik
Copy link
Collaborator

tgodzik commented Nov 10, 2023

I think this should work:
cs fetch --intransitive org.apache.spark:spark-sql_2.13:3.5.0 just replacing the dependency.

@PawelLipski
Copy link

+1, this works... although for some reason, this option isn't documented in courser fetch --help:

$ coursier fetch --help | grep intran
<no results>

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

No branches or pull requests

3 participants