Skip to content

use --forcex with pipx commands in CI

The pipx commands being run in our CI jobs are not actually updating poetry to the version we want. They just display this message.

'poetry' already seems to be installed. Not modifying existing installation in
'/home/emfollow-test/.local/share/pipx/venvs/poetry'. Pass '--force' to force
installation.

I ssh'ed into emfollow-test to check what version of poetry was installed and saw

[emfollow-test@emfollow-test ~]$ poetry --version
Poetry (version 1.8.3)

I tested --force on emfollow-dev and got the correct version (newer than what's on main, but it matches what's in our lock files):

[emfollow-dev@emfollow-dev ~]$ poetry --version
Poetry (version 2.1.1)

Merge request reports

Loading