SameerMesiah97 commented on code in PR #77449: URL: https://github.com/apache/airflow/pull/77449#discussion_r4653866287
########## scripts/in_container/install_mermaid_cli.sh: ########## @@ -28,7 +28,17 @@ MERMAID_CLI_VERSION="11.17.0" # Debian's chromium is used instead of the browser puppeteer would download. fonts-liberation gives # mermaid Liberation Sans, which has Arial's metrics, to measure its labels with. apt-get update -qq -apt-get install -y -qq --no-install-recommends chromium fonts-liberation > /dev/null + +# Match the libx11-6 version required by libx11-xcb1 to avoid conflicts +# with the version already installed in the CI image. +LIBX11_VERSION="$(apt-cache show libx11-xcb1 | sed -n 's/^Depends:.*libx11-6 (= \([^)]*\)).*/\1/p' | head -1)" Review Comment: We need to ensure that we're extracting the dependency from the candidate version of `libx11-xcb1` that APT will actually install. `apt-cache show` can return multiple package versions, so taking the first match with `head -1` doesn't necessarily guarantee that we're selecting the correct dependency. -- 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]
