SakshamSinghal20 opened a new pull request, #62318: URL: https://github.com/apache/airflow/pull/62318
### Description This PR fixes a regression in the Airflow 3.1.x production image where running the container with an arbitrary UID (e.g., via Podman or OpenShift) results in a `ModuleNotFoundError: No module named 'airflow'`. Previously, running `podman run --user=$(id -u):0 docker.io/apache/airflow:3.1.7 airflow version` would fail because the Python environment could not properly locate the packages installed in `/home/airflow/.local`. **Changes made:** * Ensured that the Python environment paths are correctly mapped and accessible when the container is executed by a non-default user with GID 0. * Restored compatibility for rootless container environments without compromising the image's security posture. closes: #62300 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (Claude Opus) --- -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
