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

NuGet.exe Update -Self keeps on updating itself #3395

Closed
UweKeim opened this Issue Aug 31, 2016 · 4 comments

Comments

Projects
None yet
5 participants
@UweKeim

UweKeim commented Aug 31, 2016

In a Windows 10 command line window I'm calling

NuGet.exe Update -self

This is an excerpt from my German command line:

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -self
Es wird auf Updates von https://www.nuget.org/api/v2/ überprüft.
"NuGet.exe" 3.4.4-rtm-1321 wird zurzeit ausgeführt.
"NuGet.exe" wird auf 3.4.4-rtm-final aktualisiert.
Das Update war erfolgreich.

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -self
Es wird auf Updates von https://www.nuget.org/api/v2/ überprüft.
"NuGet.exe" 3.4.4-rtm-1321 wird zurzeit ausgeführt.
"NuGet.exe" wird auf 3.4.4-rtm-final aktualisiert.
Das Update war erfolgreich.

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -self
Es wird auf Updates von https://www.nuget.org/api/v2/ überprüft.
"NuGet.exe" 3.4.4-rtm-1321 wird zurzeit ausgeführt.
"NuGet.exe" wird auf 3.4.4-rtm-final aktualisiert.
Das Update war erfolgreich.

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -self
Es wird auf Updates von https://www.nuget.org/api/v2/ überprüft.
"NuGet.exe" 3.4.4-rtm-1321 wird zurzeit ausgeführt.
"NuGet.exe" wird auf 3.4.4-rtm-final aktualisiert.
Das Update war erfolgreich.

Manually translated to English this looks like:

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -self
Checking for updates from https://www.nuget.org/api/v2/.
Currently running "NuGet.exe" 3.4.4-rtm-1321.
Updating "NuGet.exe" to 3.4.4-rtm-final.
Update successful.

This goes on forever, no matter how often I call the Update -self, it updates again.

Plus, a file "nuget.exe.old" is being left over after one operation succeeds.

My question:

Which steps can I take to actually get the latest version and not have NuGet update itself over and over again, when calling Update -self?

@UweKeim

This comment has been minimized.

Show comment
Hide comment
@UweKeim

UweKeim Aug 31, 2016

This is the verbose output in case it is of any interest:

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -Self -Verbosity detailed
Es wird auf Updates von https://www.nuget.org/api/v2/ überprüft.
GET https://www.nuget.org/api/v2/GetUpdates()?packageIds='NuGet.CommandLine'&versions='3.4.4-rtm-1321'&includePrerelease=true&includeAllVersions=false&targetFrameworks=''&versionConstraints=''
"NuGet.exe" 3.4.4-rtm-1321 wird zurzeit ausgeführt.
"NuGet.exe" wird auf 3.4.4-rtm-final aktualisiert.
Das Update war erfolgreich.

UweKeim commented Aug 31, 2016

This is the verbose output in case it is of any interest:

C:\Users\johndoe>"C:\Users\johndoe\Desktop\NuGet.exe" Update -Self -Verbosity detailed
Es wird auf Updates von https://www.nuget.org/api/v2/ überprüft.
GET https://www.nuget.org/api/v2/GetUpdates()?packageIds='NuGet.CommandLine'&versions='3.4.4-rtm-1321'&includePrerelease=true&includeAllVersions=false&targetFrameworks=''&versionConstraints=''
"NuGet.exe" 3.4.4-rtm-1321 wird zurzeit ausgeführt.
"NuGet.exe" wird auf 3.4.4-rtm-final aktualisiert.
Das Update war erfolgreich.
@yishaigalatzer

This comment has been minimized.

Show comment
Hide comment
@yishaigalatzer

yishaigalatzer Aug 31, 2016

This looks like the package nuget.commandline 3.4.4 is missing from the feed.

yishaigalatzer commented Aug 31, 2016

This looks like the package nuget.commandline 3.4.4 is missing from the feed.

@UweKeim

This comment has been minimized.

Show comment
Hide comment
@UweKeim

UweKeim Sep 1, 2016

That's something I can not fix on my side, correct?

UweKeim commented Sep 1, 2016

That's something I can not fix on my side, correct?

@rrelyea rrelyea added this to the 3.5 RTM milestone Sep 12, 2016

@rrelyea rrelyea added the Type:Bug label Sep 12, 2016

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Sep 12, 2016

Contributor

Correct. We plan to address with 3.5 work.

Contributor

rrelyea commented Sep 12, 2016

Correct. We plan to address with 3.5 work.

joelverhagen added a commit to NuGet/NuGet.Client that referenced this issue Sep 27, 2016

Make update -Self use -Prerelease flag (don't update to prerelease by…
… default)

Produce two sets of .nupkgs: one with build number and one without
Produce the NuGet.CommandLine package as part of the main build
Fix NuGet/Home#3395

joelverhagen added a commit to NuGet/NuGet.Client that referenced this issue Sep 27, 2016

Make update -Self use -Prerelease flag (don't update to prerelease by…
… default)

Produce two sets of .nupkgs: one with build number and one without
Produce the NuGet.CommandLine package as part of the main build
Fix NuGet/Home#3395

zhili1208 added a commit to NuGet/NuGet.Client that referenced this issue Sep 28, 2016

Make update -Self use -Prerelease flag (don't update to prerelease by…
… default)

Produce two sets of .nupkgs: one with build number and one without
Produce the NuGet.CommandLine package as part of the main build
Fix NuGet/Home#3395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment