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

git dependencies intermittently fail to restore #4266

Open
joprice opened this issue Jul 11, 2024 · 0 comments
Open

git dependencies intermittently fail to restore #4266

joprice opened this issue Jul 11, 2024 · 0 comments

Comments

@joprice
Copy link

joprice commented Jul 11, 2024

Description

When using a git dependency in a multi-project solution such as

git https://github.com/joprice/Fun.Build.git 5f82a6aeee1efe807c06d12fd70ddd75c631041b build: "dotnet pack -p:PackageVersion=1.1.6-beta-000", Packages: Fun.Build/obj/Release/

source paket-files/github.com/joprice/Fun.Build/Fun.Build/bin/Release

nuget Fun.Build 1.1.6-beta-000

git dependencies fail intermittently when restoring the solution with an error like

Fetching the git cache at /root/.paket/git/db/Fun.Build failed.
Message: Could not run "git remote set-url origin "https://github.com/joprice/Fun.Build.git"".

I attempted to disable parallelism with dotnet restore --disable-parallel test.sln, assuming that the issue is multiple projects creating the cache directories simultaneously, but it still fails some of the time. This is especially noticeable in CI, since the cache directory is not present, triggering this cache checkout code path.

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

No branches or pull requests

1 participant