Closed MarijnS95 closed 2 years ago
@dvc94ch This reminds me, I have no idea how [env]
vars are going to work with multiple-package selection. It seems the files are scanned from the package root instead of the workspace root, leading to multiple packages (within the same workspace of course) potentially having distinct environment variables...
Strangely enough I added this call at a random place in
Subcommand::new()
, instead of considering that it was both:target_dir
in two separated blocks;.cargo/config.toml
through[env]
.Fix this by moving the call straight after identifying the root directory for the selected package.