Rust packages have a tendency to rebuild parts during test and install.
It is not clear whether this can be addressed. We were therefore relying
on some environment variables set during the compile phase for cross-compiling to work in the later phases. This is not ideal,
especially if you need to build for multiple targets.
On 7/24/24 6:07 PM, James Le Cuirot wrote:
Rust packages have a tendency to rebuild parts during test and install.
It is not clear whether this can be addressed. We were therefore relying
on some environment variables set during the compile phase for cross-compiling to work in the later phases. This is not ideal,
especially if you need to build for multiple targets.
Oof, yeah, as I mentioned on Monday in -dev, I have a package that
actually produces meaningfully different programs if you rebuild it
during test.
dev-util/ruff will, when built with FEATURES=test, not show color when
you run it. Don't know why, feel a bit too freaked out about rebuilding
for tests *at all* to even think about fixing this in a "src_test
compatible way".
So I wonder if maybe we can somehow switch to e.g. doing the test phase
in a different directory such that it doesn't modify the artifacts we actually want to install.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 21:54:51 |
Calls: | 9,488 |
Calls today: | 7 |
Files: | 13,617 |
Messages: | 6,121,094 |