From 58b23a6338a72b2c39ab6a55ff0f14d88d604e53 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 25 Jan 2023 10:42:15 +0200 Subject: [PATCH] ci: Handle upstream Poetry bug Poetry 1.3 has an upstream bug [1] that makes it fail in TTYs that report size 0. A temporary fix for this is to disable escape sequences support with `--no-ansi`. [1]: https://github.com/python-poetry/poetry/issues/7184 --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cace615..a6e5c73 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -83,7 +83,7 @@ jobs: python3 -m venv .venv source .venv/bin/activate pip install poetry - poetry install # FIXME --dev-only once poetry 1.2.0 is out https://github.com/python-poetry/poetry/issues/2572 + poetry --no-ansi install # FIXME --dev-only once poetry 1.2.0 is out https://github.com/python-poetry/poetry/issues/2572 - run: name: Run linters to enforce code style command: | @@ -135,7 +135,7 @@ jobs: name: Install poetry dependencies command: | sudo pip3 install poetry - poetry install + poetry install --no-ansi - run: name: Prepare cache directory command: |