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
Use official GitLab cloning locations #1215
Conversation
Avoid failure to clone repository with older versions of git by using official cloning url (as exposed by GitLab itself in their web interface). References: - https://stackoverflow.com/questions/32533379 - https://gitlab.com/gitlab-org/gitlab/issues/29629 Fixes: 1206
I can confirm this fixes issues when running on CentOS 7. |
I also made a request to fix flake8 documentation, so we can avoid confusing other users https://gitlab.com/pycqa/flake8/merge_requests/381 |
sorry, we don't use centos 7 so we don't need to work around this bug in git |
@asottile would you mind listing the runtime requirements somewhere in docs? And maybe having an assertion in the beginning of |
it's... complicated. there's a list in CONTRIBUTING.md, but there are features which are version dependent and generally graceful degregation otherwise (for example pre-push was not always a thing, this gitlab+git bug only affects really old git, intent to add is buggy or absent in old git, etc.etc.) |
Was someone who advocated the pre-commit tool in the past years to many teams, I am upset about this direction. I am curious to whom does the we from we don't use centos 7 sentence refers to? Who is behind pre-commit tool? The documentation does not mention anything about project governance or what platforms are supported or not. Does the future of pre-commit depend only on your decisions? Are your decisions set in stone? I am asking because I would be happy to offer to help with maintenance burden, especially around packaging and cross platform testing/deployment which are usually boring but also a primary source of frustration for the end-users. To be back at the original PR: we all agree that it does avoid the mentioned error with old-git versions. The big question is what is the downside of adding |
me, the core contributors, our CI
it's primarily me, but there are other members in the organization
the docs do have
largely yes and yes -- as it always has
if you want to submit patches to fix actual bugs in the software (python files) please do so -- but this patch is not productive (pre-commit is not developed or tested on ancient distributions such as centos 7)
this patch is "noise", it doesn't actually fix anything. additionally, |
Avoid failure to clone repository with older versions of git by using
official cloning url (as exposed by GitLab itself in their web
interface).
References:
Fixes: #1206