-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Version(s) 1.6.1
Describe the bug
When packaging sources with scala-cli publish, sources within test directories are omitted even when they contain regular sources that are not tests. This can lead to missing classes in published jars.
Additionally, this behavior is not documented under https://scala-cli.virtuslab.org/docs/commands/publishing/publish
To Reproduce
Clone https://github.com/majk-p/scala-cli-publish-test and run ./package-and-check.sh
Expected behaviour
I appreciate that publishing is an experimental feature and I see how this might just be a very simple implementation for skipping test sources. I ideal world Scala CLI would simply knew if the file contains references to test framework but implementing that sounds impractical for a niche issue like this one.
A practical solution that would be backwards compatible could be a setting like "always-include-path" that would include a path (one or more) that won't be filtered out.
Anything that can help me include ./test/testapi.scala from the reproduction repo in published jar will be enough.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status