Skip to content

Commit

Permalink
ci: add missing pathspec dependency for yamllint pipeline (GoogleClou…
Browse files Browse the repository at this point in the history
…dPlatform#10269)

pipelines for YAML lints are failing due to:
```
Traceback (most recent call last):
  File "/home/runner/.local/bin/yamllint", line 5, in <module>
    from yamllint.cli import run
  File "/home/runner/.local/lib/python3.10/site-packages/yamllint/cli.py", line 24, in <module>
    from yamllint.config import YamlLintConfig, YamlLintConfigError
  File "/home/runner/.local/lib/python3.10/site-packages/yamllint/config.py", line 19, in <module>
    import pathspec
ModuleNotFoundError: No module named 'pathspec'
```

A fresh install in a virtual environment using the following command:
```bash
$ pip install yamllint==1.32.0 pyyaml==6.0.1
$ pip freeze
pathspec==0.12.1
PyYAML==6.0.1
yamllint==1.32.0
```

Regression introduced by 60917c8
  • Loading branch information
srevinsaju authored and balanaguharsha committed May 2, 2024
1 parent 280e83f commit e49ec1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mmv1-lint-product-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fi
- name: Install yamllint
if: ${{ !failure() && steps.pull_request.outputs.yamlfiles != '' }}
run: pip install yamllint==1.32.0 pyyaml==6.0.1 --no-deps
run: pip install yamllint==1.32.0 pyyaml==6.0.1 pathspec==0.12.1 --no-deps
- name: Lint YAML files
if: ${{ !failure() && steps.pull_request.outputs.yamlfiles != '' }}
run: yamllint -c repo/.yamllint ${{steps.pull_request.outputs.yamlfiles}}

0 comments on commit e49ec1d

Please sign in to comment.