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
Cache fails to be recreated after NuGet package update #506
Comments
Hello @frederiktoft, Thank you for creating this issue and we will look into it :) |
No problem. If you need more information from me, please say so and I will provide it ASAP. |
Hello @frederiktoft, Thank you once again for sharing the details. We have tried to reproduce the issue at our end. After updating nuget packages, we have faced some project reference issues in Visual Studio. Here are few suggestions that helped us to resolve the issue.
This helped to resolve the issue. If you are still facing the issue after checking all the above scenarios, kindly help us with the actual log for restore step as well. Thanks!! |
Hello @frederiktoft, Please let us know if you are facing the issue after checking all the above scenarios. |
1 similar comment
Hello @frederiktoft, Please let us know if you are facing the issue after checking all the above scenarios. |
Closing this issue after two reminders. Please feel free to reach us in case of any further questions. |
Description:
I have an Umbraco web project with four projects in the solution, with dependencies on each other. All four have packages.lock.json files and I have been able to make several succesful runs with the cache enabled. But after I have updated a nuget package, the cache fails to be recreated. Visual studio has updated the lock files correctly and they are all committed correctly.
This is an excerpt from my full workflow file:
if I outcomment
cache: true
the build proceeds and completes successfully. There have been no other changes since the last succesful run with cache enabled other than a few nuget packages has been updated.Excerpt from the build log with the setup-dotnet step (changed a few names for privacy sake):
And this is for the post dotnet-setup process:
So I think this obviously is related to the lock file being changed, and the task somehow fails to update the cache accordingly.
Task version:
v4
Platform:
Runner type:
Repro steps:
Reproduction steps basically described above, but:
Expected behavior:
Task updates cache correctly so it can be reused in subsequent runs.
Actual behavior:
Cache is not updated, and fails because since the packages.lock.json hash has changed it cant find an existing cache with the correct hash.
The text was updated successfully, but these errors were encountered: