Hi, I was able to add another source root pattern ...
# general
c
Hi, I was able to add another source root pattern through the source subsystem but I'm now experimenting in a different direction: given the following project structure
module/src/scala/org/module/Stuff.scala
module/BUILD
If I add a
scala_library
with
sources=globs('src/scala/org/module/*.scala')
then
./pants export module::
will give me:
"root": [{ "package_prefix": "src.scala.org.module" }]
. Obviously I'd like to have only
org.module
as the package prefix. I've seen the
source_roots
option which takes a map but I don't understand the syntax, the default says:
{ '3rdparty/go':'(u'go_remote',)' ...
. What is this
'(u'
thing? Also, can I have both the root pattern option and the roots option?