Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Multiple instances of nuget.exe trying to install the same package in parallel causes a double write #2628
(the plus side is this has revealed some bad practices where teams were hard linking from nuget package folders then overwriting the hardlinked file corrupting their nuget package install.)
(The down side is build tracers like buildcop need to now have nuget.exe exclusions for double-writes and doublewriting in practice is problematic especially if projectC thinks the package is installed because it is a large package that projectA installed and projectB is still doing a doublewrite and then projectC ends up doing a read lock on a file that projectB is trying to doublewrite causing an access violation.)
perhaps a mutex or something on the package folder should be created before nuget attempts to install a package.
Looks like we still have a hole with the static methods:
added a commit
Apr 22, 2016
Sorry for delay my DRI rotation was very eventful.