pre-commit-ci / issues

public issues for https://pre-commit.ci
16 stars 3 forks source link

Manually override cache in CI jobs #160

Closed gipert closed 1 year ago

gipert commented 1 year ago

My pre-commit CI jobs are suddenly failing because of a new check introduced by flake8-bugbear, despite Flake8's version staying constant. The new behavior was then promptly reverted in a second release. My (possibly wrong) interpretation is that the CI job is still failing (contrary to what happens locally) because of a caching issue.

I was wondering whether there is a way to manually override the cache in CI. I could not find any reference in the docs.

asottile commented 1 year ago

you can pin a version and your cache will be consistent

gipert commented 1 year ago

I did not know I could pin a specific flake8-bugbear version. Works now thanks!