Skip to content
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 nuget push source does not recognize PSDrive. #10410

Closed
VictorioBerra opened this issue Aug 6, 2019 · 3 comments
Closed

dotnet nuget push source does not recognize PSDrive. #10410

VictorioBerra opened this issue Aug 6, 2019 · 3 comments

Comments

@VictorioBerra
Copy link

Steps to reproduce

  • Mount a PSDrive without using -Persist
  • Try and push a nuget package to it.

Expected behavior

It should see it as a file source and just work (tm)

Actual behavior

I get an error about not providing an API Key as if it were a MyGet server or something.

If I use -Persist, the code works just fine.

$null = new-psdrive Name "X" -PSProvider FileSystem -root $DeploymentTarget -Credential $cred -ErrorAction Stop;
dotnet nuget push something.nupkg -s "X:\"; # ERROR!!! MISSING API KEY

Simply adding -Persist will map the share top a drive letter and things work again.

Is there some way around this? I do not want to use -Persist on my build server.

@livarcocc
Copy link
Contributor

@nkolev92 this seems like a NuGet issue. Should I go ahead and move this to nuget/home?

@nkolev92
Copy link
Contributor

nkolev92 commented Aug 6, 2019

Yeah, feel free to move it.

NuGet seems to detecting the source type wrong.

@livarcocc
Copy link
Contributor

This issue was moved to NuGet/Home#8431

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants