Fix uv venv errors because of preexisting environment by victormlg · Pull Request #17 · cfengine/cfengine-cli

@victormlg

@victormlg

Signed-off-by: Victor Moene <victor.moene@northern.tech>

@victormlg

@victormlg

The tests pass when changing lint.yaml

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

to

olehermanse

python -m pip install uv
- name: Setup
run: |
uv venv

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victormlg Did you try adding --clear as the error message suggests?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victormlg AFAICT this is editing the wrong file. lint has been green, the one that needed help was test.yml.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted and fixed in #19