[Feature request] Only set CARGO_HOME if it isn't set
When preparing the obfuscate package for debian I encountered what is an unintended bug imo. To build obfuscate all dependencies are provided as offline libraries at /usr/share/cargo/registry
. During the build this is symlinked to a local repository to provide an offline build using the debian crates. One flag I need to set for this is CARGO_HOME
. My build kept downloading source code (unintentional) until a fellow packager pointed out that CARGO_HOME
gets overridden by meson here.
Could you maybe consider checking if CARGO_HOME
is set already and only set it if it hasn't been set before ? This would ease packaging since currently I have to patch out line 33 and 45.