Fix CARGO_HOME location for airflow user builds#64899
Merged
potiuk merged 1 commit intoapache:mainfrom Apr 8, 2026
Merged
Conversation
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.
jscheffl
approved these changes
Apr 8, 2026
ramitkataria
approved these changes
Apr 8, 2026
Contributor
ramitkataria
left a comment
There was a problem hiding this comment.
Tested this on x86 prod image and can confirm that it now builds successfully. Thanks!
1 task
Contributor
|
This fixes this error which was only occuring in x86 prod image builds: The root cause of the issue seems to be a missing wheel for But now, with the new path for CARGO_HOME, that permissions issue during cargo build doesn't occur. |
potiuk
added a commit
that referenced
this pull request
Apr 8, 2026
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) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move CARGO_HOME from
/usr/local/cargoto/home/airflow/.cargoso thatcargo builds work correctly when running as the airflow user, avoiding
permission issues with the system-wide cargo directory.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Claude Opus 4.6) following the guidelines