From af59f6e6ef9229d35755f6d31451831f84e9eca2 Mon Sep 17 00:00:00 2001 From: Andreas Perhab Date: Mon, 18 Sep 2023 08:41:51 +0200 Subject: [PATCH 1/2] [FIX] 11.0: use execjs <2.9.1 to avoid "execjs requires Ruby version >= 2.5.0." errors --- 11.0.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/11.0.Dockerfile b/11.0.Dockerfile index 279a4a2c..5347bd58 100644 --- a/11.0.Dockerfile +++ b/11.0.Dockerfile @@ -77,7 +77,8 @@ RUN ln -s /usr/bin/nodejs /usr/local/bin/node \ && rm -Rf ~/.npm /tmp/* # Special case to get bootstrap-sass, required by Odoo for Sass assets -RUN gem install --no-rdoc --no-ri --no-update-sources autoprefixer-rails --version '<9.8.6' \ +RUN gem install --no-rdoc --no-ri --no-update-sources execjs --version '<2.9.1' \ + && gem install --no-rdoc --no-ri --no-update-sources autoprefixer-rails --version '<9.8.6' \ && gem install --no-rdoc --no-ri --no-update-sources bootstrap-sass --version '<3.4' \ && rm -Rf ~/.gem /var/lib/gems/*/cache/ From d33df7fe662017bf12988424c2a1f5373e0f16b4 Mon Sep 17 00:00:00 2001 From: Andreas Perhab Date: Mon, 18 Sep 2023 10:09:59 +0200 Subject: [PATCH 2/2] [FIX] ci: use pyyaml 5.3.1, only in ci --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d0f3e22c..431ffb6b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,6 +63,9 @@ jobs: - run: pip install poetry - name: Patch $PATH run: echo "$HOME/.local/bin" >> $GITHUB_PATH + # override pyyaml to 5.3.1 as PIP_CONSTRAINT does not work for poetry + # to get rid of AttributeError: cython_sources when installing pyyaml + - run: poetry add pyyaml==5.3.1 - run: poetry install # Build images - run: poetry run ./hooks/build