Skip to content

Commit 4b5b7d0

Browse files
authored
[v3-2-test] Fix CARGO_HOME location for airflow user builds (#64899) (#64914)
Move CARGO_HOME from /usr/local/cargo to /home/airflow/.cargo so that cargo builds work correctly when running as the airflow user, avoiding permission issues with the system-wide cargo directory. (cherry picked from commit e62a12d)
1 parent 5c65f5a commit 4b5b7d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,7 @@ ENV DEV_APT_DEPS=${DEV_APT_DEPS} \
18741874
ARG PYTHON_LTO
18751875

18761876
ENV RUSTUP_HOME="/usr/local/rustup"
1877-
ENV CARGO_HOME="/usr/local/cargo"
1877+
ENV CARGO_HOME="/home/airflow/.cargo"
18781878
ENV PATH="${CARGO_HOME}/bin:${PATH}"
18791879

18801880
COPY --from=scripts install_os_dependencies.sh /scripts/docker/

0 commit comments

Comments
 (0)