This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e62a12d06f8 Fix CARGO_HOME location for airflow user builds (#64899)
e62a12d06f8 is described below

commit e62a12d06f88a7eb32e541fe2bcd272e16fe5aad
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Apr 8 22:26:54 2026 +0300

    Fix CARGO_HOME location for airflow user builds (#64899)
    
    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.
---
 Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 08bd7b66f95..ba66abccf6b 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/

Reply via email to