It's common to have library and test targets with different dependencies and I can think of more possible targets like benchmarks, or maybe even canisters/canister blueprints.
In my library template I "solve" this by referencing the main vessel.dhall from the test folder and extending it using Dhall. It's not ideal because it creates a separate .vessel directory underneath test/. And requires running test commands from within test/, but I also don't hate having the test specific configuration in the test/ directory rather than adding it to the library config.
Possible Solution 1:
spago solves this by letting the user specify a config file to use instead of the default one. So you'd create a test.dhall file and call something like vessel -x test/test.dhall sources.
Possible Solution 2:
cargo and most other package managers let the user specify their multiple targets in the main manifest file, We could come up with a schema to do the same for vessel.
Related to/Generalizes #7
It's common to have
libraryandtesttargets with different dependencies and I can think of more possible targets like benchmarks, or maybe even canisters/canister blueprints.In my library template I "solve" this by referencing the main
vessel.dhallfrom the test folder and extending it using Dhall. It's not ideal because it creates a separate.vesseldirectory underneathtest/. And requires running test commands from withintest/, but I also don't hate having thetestspecific configuration in thetest/directory rather than adding it to the library config.Possible Solution 1:
spagosolves this by letting the user specify a config file to use instead of the default one. So you'd create atest.dhallfile and call something likevessel -x test/test.dhall sources.Possible Solution 2:
cargoand most other package managers let the user specify their multiple targets in the main manifest file, We could come up with a schema to do the same forvessel.Related to/Generalizes #7