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

Dotnet restore uses global temporary directory #2806

Closed
Inumedia opened this Issue May 2, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@Inumedia

Inumedia commented May 2, 2016

Steps to reproduce

  • Setup Ubuntu 14.04 instance to test on
  • Install latest dotnet runtime
  • Create new project as root
  • Execute dotnet restore
  • Login as another user
  • Create new project as other user
  • Attempt to execute dotnet restore
  • You will see a permission error, attempting to access /tmp/NuGetScratch/lock

Expected behavior

dotnet restore should work as expected and my project's dependencies should be restored.

Actual behavior

dotnet restore attempts to re-use the /tmp/NuGetScratch/lock causing a permissions error and failing out.

Environment data

dotnet --info output:

(Attempting to run dotnet --info yields no helpful information, I ran dotnet --version)

dotnet --version :
.NET Command Line Tools (1.0.0-beta-001598)

Product Information:
Version: 1.0.0-beta-001598
Commit Sha: N/A

Runtime Environment:
OS Name: ubuntu
OS Version: 14.04
OS Platform: Linux
Runtime Id: ubuntu.14.04-x64

@Inumedia

This comment has been minimized.

Show comment
Hide comment
@Inumedia

Inumedia May 2, 2016

As a note, attempting to run dotnet restore with the packages argument still tries to lock the global tmp folder:

dotnet restore --packages ~/.NuGet :
log : Restoring packages for /home/.../builds/aec560d5/0/.../.../project.json...
error: Access to the path '/tmp/NuGetScratch/lock' is denied.

Inumedia commented May 2, 2016

As a note, attempting to run dotnet restore with the packages argument still tries to lock the global tmp folder:

dotnet restore --packages ~/.NuGet :
log : Restoring packages for /home/.../builds/aec560d5/0/.../.../project.json...
error: Access to the path '/tmp/NuGetScratch/lock' is denied.

@brthor

This comment has been minimized.

Show comment
Hide comment
@brthor

brthor May 2, 2016

Contributor

Please move this over to https://github.com/nuget/home as we do not control this behavior in the cli.

dotnet restore simply uses nuget.

Contributor

brthor commented May 2, 2016

Please move this over to https://github.com/nuget/home as we do not control this behavior in the cli.

dotnet restore simply uses nuget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment