Skip to content

CI: fix 'fatal: unsafe repository ('/Users/runner/work/lima/lima/vde_vmnet' is owned by someone else)' #797

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

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Apr 14, 2022

CI was failing due to the recent breaking change of git: git/git@8959555

Cloning into 'vde_vmnet'...
HEAD is now at a4b489e Merge pull request #40 from AkihiroSuda/dev
git submodule update --init
fatal: unsafe repository ('/Users/runner/work/lima/lima/vde_vmnet' is owned by someone else)
To add an exception for this directory, call:

git config --global --add safe.directory /Users/runner/work/lima/lima/vde_vmnet
make: *** [install.vde-2] Error 128

@AkihiroSuda AkihiroSuda added the area/test Tests and CI label Apr 14, 2022
@AkihiroSuda AkihiroSuda added this to the v0.10.0 milestone Apr 14, 2022
@AkihiroSuda AkihiroSuda force-pushed the ci-git-safe-directory branch from ae35259 to 991c168 Compare April 14, 2022 09:26
…vmnet' is owned by someone else)'

CI was failing due to the recent breaking change of git

> Cloning into 'vde_vmnet'...
> HEAD is now at a4b489e Merge pull request lima-vm#40 from AkihiroSuda/dev
> git submodule update --init
> fatal: unsafe repository ('/Users/runner/work/lima/lima/vde_vmnet' is owned by someone else)
> To add an exception for this directory, call:
>
> 	git config --global --add safe.directory /Users/runner/work/lima/lima/vde_vmnet
> make: *** [install.vde-2] Error 128

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda force-pushed the ci-git-safe-directory branch from 991c168 to e1ee7cf Compare April 14, 2022 09:54
@AkihiroSuda AkihiroSuda merged commit af2d2a9 into lima-vm:master Apr 14, 2022
@jandubois
Copy link
Member

Just out of curiosity: Why are the owners different? Is the checkout action not cloning the repo using the current user?

@AkihiroSuda
Copy link
Member Author

Just out of curiosity: Why are the owners different? Is the checkout action not cloning the repo using the current user?

Because we clone the repo as the runner user but run make install as the root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test Tests and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants