Set CARGO_HOME to the local .config

This commit is contained in:
Josh Stone 2018-12-07 13:58:41 -08:00
parent 294c6f571c
commit b4e2503829

View file

@ -1,4 +1,8 @@
%__cargo %{_bindir}/cargo # Since cargo 1.31, install only uses $CARGO_HOME/config, ignoring $PWD.
# https://github.com/rust-lang/cargo/issues/6397
# But we can set CARGO_HOME locally, which is a good idea anyway to make sure
# it never writes to ~/.cargo during rpmbuild.
%__cargo %{_bindir}/env CARGO_HOME=.cargo %{_bindir}/cargo
%__cargo_common_opts %{?_smp_mflags} %__cargo_common_opts %{?_smp_mflags}
%__cargo_inspector %{_bindir}/cargo-inspector %__cargo_inspector %{_bindir}/cargo-inspector