-
-
Notifications
You must be signed in to change notification settings - Fork 26
Description
The current mirror implementation restricts only adds new versions if their version is higher than the newest version already present on the mirror (code here: https://github.com/pre-commit/pre-commit-mirror-maker/blob/master/pre_commit_mirror_maker/make_repo.py#L80). This is a good solution if assuming that people will always want to update to the latest version.
In https://github.com/ssciwr/clang-format-wheel and its mirror in https://github.com/pre-commit/mirrors-clang-format we are supporting multiple major/minor versions (after all upgrading to a newer version of clang-format might rewrite your code base). I have released versions 10.0.1.1, 11.0.1.1, 11.1.0.1and12.0.1.1` last week that fix two packaging issues on Windows, but these releases are not picked up by the mirror.
I propose to either unconditionally or via an additional flag have pre-commit-mirror take into account the entire list of releases. What do you think?