Skip to content

Commit f161bc2

Browse files
authored
[CI] Fix Rust permissions for wasmtime and sccache (#10015)
Previously this was ran as part of `ubuntu_install_rust.sh`, as we now have multiple scripts which write as the container build user we have to fix up each time to ensure future users don't break.
1 parent e42b9a3 commit f161bc2

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docker/install/ubuntu_install_rust.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export PATH=$CARGO_HOME/bin:$PATH
2626
rustup component add rustfmt
2727
rustup component add clippy
2828

29-
# make rust usable by all users
29+
# make rust usable by all users after install during container build
3030
chmod -R a+w /opt/rust

docker/install/ubuntu_install_sccache.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ cargo install sccache
2626
mkdir /opt/sccache
2727
ln "$(which sccache)" /opt/sccache/cc
2828
ln "$(which sccache)" /opt/sccache/c++
29+
30+
# make rust usable by all users after install during container build
31+
chmod -R a+w /opt/rust

docker/install/ubuntu_install_wasmtime.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ export WASMTIME_HOME=/opt/wasmtime
2424
curl https://wasmtime.dev/install.sh -sSf | bash
2525
export PATH="${WASMTIME_HOME}/bin:${PATH}"
2626
rustup target add wasm32-wasi
27+
28+
# make rust usable by all users after install during container build
29+
chmod -R a+w /opt/rust

0 commit comments

Comments
 (0)