This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-2-test by this push:
new 4b5b7d03ffc [v3-2-test] Fix CARGO_HOME location for airflow user
builds (#64899) (#64914)
4b5b7d03ffc is described below
commit 4b5b7d03ffc578c9bbdfeb5b9e8170eb3694e1da
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Apr 8 22:35:54 2026 +0300
[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 e62a12d06f88a7eb32e541fe2bcd272e16fe5aad)
---
Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index d56e1fb165f..75e341eb353 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1874,7 +1874,7 @@ ENV DEV_APT_DEPS=${DEV_APT_DEPS} \
ARG PYTHON_LTO
ENV RUSTUP_HOME="/usr/local/rustup"
-ENV CARGO_HOME="/usr/local/cargo"
+ENV CARGO_HOME="/home/airflow/.cargo"
ENV PATH="${CARGO_HOME}/bin:${PATH}"
COPY --from=scripts install_os_dependencies.sh /scripts/docker/