potiuk commented on a change in pull request #19189:
URL: https://github.com/apache/airflow/pull/19189#discussion_r737962330
##########
File path: scripts/ci/libraries/_verify_image.sh
##########
@@ -340,7 +340,7 @@ function verify_image::verify_prod_image_as_root() {
function verify_image::verify_production_image_has_dist_folder() {
start_end::group_start "Verify prod image has dist folder (compiled www
assets): ${DOCKER_IMAGE}"
# shellcheck disable=SC2016
- verify_image::check_command "Dist folder" '[ -f $(python -m site
--user-site)/airflow/www/static/dist/manifest.json ] || exit 1'
+ verify_image::check_command "Dist folder" '[ -f /.venv/lib/python$(python
-c "import sys;
print(str(sys.version_info[0])+\".\"+str(sys.version_info[1]))")/site-packages/airflow/www/static/dist/manifest.json
] || exit 1'
Review comment:
Ah nice TIL
--
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]