-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-commit hook seems to not create the correct version #123
Comments
The log file's contents: version information
error information
|
It isn't doing a full checkout. With the shallow checkout, it's not able to figure out its own version. If we have to give up svn versioning, we could do that, but work investigating a bit. It's right on a tag, so I'd have thought it would still be able to use that. |
Hmm, psf/black uses the same versioning method. Maybe it's not usually a problem because usually you don't check the version with a dependency? |
I just tried removing the |
Pre-commit recently changed its checkout method to make it faster, it could have broken this. It's also possible that it rarely matters, since normally you don't have pinning between the repo and the additional dependencies. Two possible fixes (other than removing VCS versioning): you can use the cookie repo as a pre-commit (it's supported, see https://pypi.org/project/sp-repo-review/). Or we can remove the pinning in sp-repo-review on repo-review (PR above) - it's really not that important and sometimes causes issues. It's better to just fix quickly than try to guess breakages. |
Found a few small issues with the |
I think we need to make a mirror. I don't see a way to install Though extras aren't currently supported, made pre-commit/pre-commit-mirror-maker#185. |
When I add the following hook per the documentation:
I am getting the following error when pre-commit attempts to install the repo-review hook:
When I examine the version of
repo-review
installed by pre-commit I find that its generated_version.py
is:which indicates to me that the dynamic versioning for
repo-review
is not correctly creating the version from the repo's tag.Note that when I run
sp-repo-review
directly, I do get the right versions❯ pipx run 'sp-repo-review[cli]' --version sp-repo-review, version 0.9.2
The text was updated successfully, but these errors were encountered: