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 updotnet restore: temporary directory is expected to be user specific #1748
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
mmalolepszy
commented
Mar 22, 2016
|
I confirm this problem still exists on 1.0.0-beta-001933. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
victory2009
Jul 9, 2016
me too .
Environment:
OS : centos-release-7-2.1511.el7.centos.2.10.x86_64
CLI:1.0.0-preview2-003121
victory2009
commented
Jul 9, 2016
|
me too . |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
blackdwarf
Jul 21, 2016
Contributor
/cc @rrelyea I believe this is a NuGet issue and should be moved to NuGet/Home, right? dotnet restore simply passes through to NuGet.
|
/cc @rrelyea I believe this is a NuGet issue and should be moved to NuGet/Home, right? |
blackdwarf
added this to the Backlog milestone
Jul 21, 2016
blackdwarf
referenced this issue
Jul 27, 2016
Closed
dotnet restore: temporary directory is expected to be user specific #3229
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Closing in favor of Nuget/home issue. |
blackdwarf
closed this
Jul 27, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
songdongsheng commentedMar 8, 2016
Steps to reproduce
In Ubuntu 14.04 or CentOS 7.2, run dotnet restore with the user1, then run dotnet restore with the user2 failed.
$ dotnet restore -v verbose
error: Access to the path '/tmp/NuGetScratch/lock' is denied.
trace: System.AggregateException: One or more errors occurred. (Access to the path '/tmp/NuGetScratch/lock' is denied.) ---> System.UnauthorizedAccessException: Access to the path '/tmp/NuGetScratch/lock' is denied.
Expected behavior
All user should run dotnet restore successes in the same system.
Actual behavior
Only one user can run dotnet restore successes in the same system.
Environment data
dotnet --versionoutput:$ dotnet --version
.NET Command Line Tools (1.0.0-beta-001661)
Product Information:
Version: 1.0.0-beta-001661
Commit Sha: 2b90a2f
Runtime Environment:
OS Name: ubuntu
OS Version: 14.04
OS Platform: Linux
Runtime Id: ubuntu.14.04-x64
Cause and Solution
During the restore, all user use the same temporary directory '/tmp/NuGetScratch/', this is absolutely wrong, we need use the user specific directory, e.g. '/tmp/NuGetScratch-${USER}/'.