`packages.dhall` doesn't respect local package's sources
From the Mono repo example, say if I define a local dependency like so
let overrides =
{ liba = ./liba/spago.dhall as Location
}
in packages.dhall. But liba/spago.dhall defines it's sources with something like
, sources =
[ "liba/src/main/purescript/**/*.purs" ]
Say there is server code in liba/src/main/java/.
I can compile code in liba with
spago -x liba/spago.dhall build
but I when I compile app1 which depends on liba then I also compile source code in liba/src/test/purescript/. This is because spago is using liba/src/**/*.purs as the sources. You can confirm this behaviour with
spago -x app1/spago.dhall sources
which will always output ./liba/src/**/*.purs regardless of what liba/spago.dhall says it's sources are.
Issue is in Packages.hs#L87
I think JordanMartinez meant #663
Ah, yeah, sorry about that.
@ptwales sorry, it's a bit of a hectic time and I did not manage to look at this yet, I'll get to it shortly
The new Spago does not have sources anymore, closing