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

Collision when downloading nuget in multiple sub projects #92

Open
afischer-opentext-com opened this issue Jan 3, 2023 · 1 comment

Comments

@afischer-opentext-com
Copy link

Hi,

using version 2.23

I have a gradle project with two sub projects and both use the nuget plugin. From time to time I observe the situation that after server maintenance one of the related nugetRestore tasks fails while the other one succeeds. Subsequent builds succeed then.

This suggests that the download of the nuget executable into the Gradle cache has a synchronization issue or some check for presence of the executable may lead to unexpected results.

Is it possible that the check for the nuget executable tests only for existence of the file but not for complete download of it?

@afischer-opentext-com
Copy link
Author

It seems to me that indeed parallel jobs might lead to issues as there is no synchronization:


I do not know enought about gradle to provide a proper solution for that. The workaround is to define an explicit dependency which technically does not exist.

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