This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Concurrent restore of project.json contention on lock.json #1682
Labels
Milestone
Comments
ericstj
added a commit
to ericstj/buildtools
that referenced
this issue
Apr 21, 2015
DNX has an issue with concurrent restore: aspnet/dnx#1682 Previously I would workaround by copying to intermediate, but this breaks in official build where intermediate is not under the scope of our nuget.config, so custom package sources are ignored. Fix this instead by wrapping the call to dnu restore with a mutex unique to the project.json name. We only need to do this for the test project.json because that is the only one we'll restore concurrently.
@ericstj, do you have the stack trace for the error? |
Here you go. I forced it by dropping 6 projects in the same directory with different csproj's and same project.json.
|
cc @anurse |
So we're not supporting this. But we're going to fail better |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our build happens to try to restore project.json from two separate threads/processes. This can result in an IOException when trying to write the .lock.json.
The text was updated successfully, but these errors were encountered: