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

detected dubious ownership in repository #2171

Open
jleibs opened this issue May 19, 2023 · 0 comments
Open

detected dubious ownership in repository #2171

jleibs opened this issue May 19, 2023 · 0 comments
Labels
🧑‍💻 dev experience developer experience (excluding CI) 🦟 regression A thing that used to work in an earlier release

Comments

@jleibs
Copy link
Member

jleibs commented May 19, 2023

There is a pathological set of conditions that can result in:

Failed to run 'git ["rev-parse", "HEAD"]':

  fatal: detected dubious ownership in repository at '/__w/rerun/rerun'
  To add an exception for this directory, call:

  	git config --global --add safe.directory /__w/rerun/rerun

This is discussed at length in this thread:
actions/runner-images#6775 (comment)

We worked around it by adding:

RUN git config --system --add safe.directory *

to the docker image as advised.

However, when the docker image accidentally migrated from git 2.25.1 to 2.30.2 the above fix appears to have stopped working.

I tried changing the behavior to:

git config --global --add safe.directory '/__w/rerun/rerun'

however when building the image I ended up back on git 2.25.1 and that fails as well.
Related to:

At present the only known combination of functioning behavior is:

git version 2.25.1

RUN git config --system --add safe.directory *

It's likely the case that until we figure out a deterministic way of building a docker container that works that @jleibs needs to be the one to publish updates to our docker container for the time being.

@jleibs jleibs added 🧑‍💻 dev experience developer experience (excluding CI) 🦟 regression A thing that used to work in an earlier release labels May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dev experience developer experience (excluding CI) 🦟 regression A thing that used to work in an earlier release
Projects
None yet
Development

No branches or pull requests

1 participant