Skip to content
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

File ownership not preserved when copying the project inside the container #2004

Closed
mayeut opened this issue Sep 14, 2024 · 1 comment · Fixed by #2007
Closed

File ownership not preserved when copying the project inside the container #2004

mayeut opened this issue Sep 14, 2024 · 1 comment · Fixed by #2007

Comments

@mayeut
Copy link
Member

mayeut commented Sep 14, 2024

Description

File ownership not preserved when copying the project inside the container

Regression introduced by #1961

Originally reported by @cdce8p in #1961 (comment)

FYI This change causes a build failure for mypy on manylinux and musllinux with Github actions and ubuntu-latest.
https://github.com/mypyc/mypy_mypyc-wheels/actions/runs/10852483095/job/30118641732#step:4:461

For the build, the mypy repo is first cloned in a previous step and cibuildwheel subsequently run with package-dir: mypy.

The error

fatal: detected dubious ownership in repository at '/project/mypy'

--
I was able to work around it by adding this to linux.before-all:

git config --global --add safe.directory {project}/mypy

The link to the PR: mypyc/mypy_mypyc-wheels#82

Build log

No response

CI config

No response

@cdce8p
Copy link

cdce8p commented Sep 17, 2024

Just tested 2.21.1 and the issue is resolved. Thanks for working on it @mayeut!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants