From 40c0effe80bf6d263541d429f5c7cc6801461c1b Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 28 Mar 2024 21:43:43 +0100 Subject: [PATCH] Fix global target dir pollution This shouldn't be necessary but people override it anyway and it costs nothing --- cargo-cache/PKGBUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cargo-cache/PKGBUILD b/cargo-cache/PKGBUILD index 220b698..00bc860 100644 --- a/cargo-cache/PKGBUILD +++ b/cargo-cache/PKGBUILD @@ -23,6 +23,8 @@ prepare() { build() { cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target cargo build --release --locked }