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

Omitting "->compile" in dependsOn leads to the dependency not being processed #375

Open
martin-stone opened this issue Mar 17, 2023 · 0 comments

Comments

@martin-stone
Copy link

martin-stone commented Mar 17, 2023

The SBT docs say:

Omitting the ->config part implies ->compile, so dependsOn(util % "test") means that the test configuration in core depends on the Compile configuration in util.

https://www.scala-sbt.org/1.x/docs/Multi-Project.html#Per-configuration+classpath+dependencies

In my case I have .dependsOn(util % "compile;it->it") and the util dependency is not packed.

I think the issue is here:

       def isCompileConfig(cp: ClasspathDep[ProjectRef]) = cp.configuration.forall(_.contains("compile->"))

https://github.com/jonfox/sbt-pack/blob/master/src/main/scala/xerial/sbt/pack/PackPlugin.scala#L417

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

1 participant