-
Notifications
You must be signed in to change notification settings - Fork 88
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
Recent git update has broken builds using docker images #470
Comments
I think the proper fix is to add |
I haven't had much luck here so far--please do ping me if you see another project do something useful in this regard, etc. |
I guess multibuild could add |
@tylerjereddy - did you try something like Matti's suggestion? function gh_clone {
git clone https://github.com/$1
git config --global --add safe.directory $1
} |
Ah, I did something similar, but it was elsewhere in the control flow. There's also a suggestion from Henry over there: pypa/manylinux#1309 (comment) Maybe I will try these ideas later today, thanks! |
I see another git step that is actually used by scipy wheels in Lines 282 to 298 in e0b6e4f
|
That looks like a likely spot. |
Note that in one case I needed to use |
I see the same thing I saw with my previous attempts so far:
|
(and then the version number looks weird again) |
I guess you have to apply this command also in the |
More diagnostic info/local reproducer: MacPython/scipy-wheels#167 (comment) |
Henry's scoping of the |
Hmm. This doesn't directly apply for NumPy, looks like I need to start working on that. |
Found a fix using the |
What worked for me on github actions was adding if [ $(uname) == "Linux" ]; then
IS_LINUX=1
! git config --global --add safe.directory "*"
fi to the top of |
Closing. I think end users found the work-arounds they needed. Please reopen or open a new issue if I am mistaken. |
See https://github.blog/2022-04-12-git-security-vulnerability-announced/. The effect of this change is that git will no longer recognize all repos as belonging to the git owner, this breaks
versioneer
andgit describe
, so that projects that depend on them for versioning no longer build. See MacPython/scipy-wheels#167 for the problem, along with some links to NumPy fixes that worked for the NumPy CI.The text was updated successfully, but these errors were encountered: