Buildd-setup faffing around with __FILE__ breaks my unit tests.
Sune Vuorela
sune at debian.org
Mon Feb 11 03:39:47 GMT 2019
On Sunday, February 10, 2019 10:05:00 PM CET you wrote:
> To fix this in other projects, we would have to patch all uses of __FILE__
> to something like strip_prefix(PREFIX, __FILE__), pass in PREFIX from the
But why not just record the build directory as part of the environment that
aren't allowed to change? Just like all the other bits of the environment
that aren't allowed to change and still have reproducible builds?
> Note that __FILE__ was never intended to have any runtime meaning - tests
I'd like to see a source for that.
/Sune
More information about the Reproducible-builds
mailing list