atom / chocolatey

chocolatey installer for Atom
MIT License
12 stars 17 forks source link

Updating Atom via `cup` resulted in "nothing to update". #27

Closed philoushka closed 9 years ago

philoushka commented 10 years ago

I saw that there was an Atom update. Was on an old version - 0.113 Wanted the new version - 0.121

I ran cup Atom and later choco update Atom. Chocolatey returned nothing to update on both commands. I expected the updated package and bits (v 0.121) to be downloaded.

The old version was at C:\Chocolatey\lib\Atom.0.113.0

atom update

To work around, on advice from @kevinsawicki , I cinst Atom, and it brought down the latest version. That dropped the bits to C:\Chocolatey\lib\Atom.0.121.0. Windows Start-search for Atom launched the new version.

kevinsawicki commented 10 years ago

@ferventcoder any tips to debug something like this or any ideas what the issue might be? Thanks :smile:

ferventcoder commented 10 years ago

Checking now...

ferventcoder commented 10 years ago

You will not believe this...

C:\> nuget list "atom" -NonInteractive -Source "https://chocolatey.org/api/v2/;"
No packages found.
C:\> nuget list "Atom" -NonInteractive -Source "https://chocolatey.org/api/v2/;"
No packages found.
C:\> nuget list "Atom" -NonInteractive -Source "https://chocolatey.org/api/v2/"
Atom 0.121.0
C:\> nuget list "atom" -NonInteractive -Source "https://chocolatey.org/api/v2/"
Atom 0.121.0
C:\> nuget
NuGet Version: 2.8.50506.491

Chocolatey uses nuget to do the search...

kevinsawicki commented 10 years ago

Thanks for looking into this, I'm no nuget expert, is that something I did wrong or a server-side problem?

ferventcoder commented 10 years ago

So for update, chocolatey calls nuget with the specific details. However tagging the ";" at the end of the source with a package that has capital letters in it causes issues. This is such a weird error and makes no sense. Note if I do the same searches with something like peco it works appropriately.

C:\> nuget list "peco" -NonInteractive -Source "https://chocolatey.org/api/v2/"
peco 0.2.2
C:\> nuget list "peco" -NonInteractive -Source "https://chocolatey.org/api/v2/;"
peco 0.2.2
C:\> nuget list "Peco" -NonInteractive -Source "https://chocolatey.org/api/v2/"
peco 0.2.2
C:\> nuget list "Peco" -NonInteractive -Source "https://chocolatey.org/api/v2/;"
peco 0.2.2
ferventcoder commented 10 years ago

I just filed https://github.com/chocolatey/chocolatey/issues/544

ferventcoder commented 10 years ago

OT: @bradgearon @kevinsawicki Note the latest package shows the files and contents of the chocolatey package on chocolatey.org: http://chocolatey.org/packages/Atom/0.121.0

There is a Files section down near discussion: image

kevinsawicki commented 9 years ago

Atom now has an installer & auto updater that should be used instead.

http://blog.atom.io/2014/12/10/a-windows-installer-and-updater.html