RamonUnch / AltSnap

Maintained continuation of Stefan Sundin's AltDrag
GNU General Public License v3.0
2.08k stars 66 forks source link

Chocolatey packaget not updating #541

Open alex-ds13 opened 4 months ago

alex-ds13 commented 4 months ago

Sorry to bother about this, but the AltSnap chocolatey package didn't update to the latest 1.63 version. From all I've searched on this repo and the chocolatey package repo, you usually state that you update the chocolatey package on the same day or after a couple of days. It has been almost a month since 1.63 was released, I've only now noticed that there was a new version from winget.

Was the chocolatey package dismissed in favor of winget? Or is it still going to be updated?

RamonUnch commented 4 months ago

Yes indeed, sorry for that but the choco package no longer passes the automated validation and I do not understand the error, I have no time to investigate deeply so I abandoned temporary. You can check here for more details: https://community.chocolatey.org/packages/altsnap/1.63

I do not know why it fails, it installs fine on both Win11 and Win7 installs I have. I would need to install their test environement on an emulator etc. but it is already complicated for me.

alex-ds13 commented 4 months ago

Yes indeed, sorry for that but the choco package no longer passes the automated validation and I do not understand the error, I have no time to investigate deeply so I abandoned temporary. You can check here for more details: https://community.chocolatey.org/packages/altsnap/1.63

I do not know why it fails, it installs fine on both Win11 and Win7 installs I have. I would need to install their test environement on an emulator etc. but it is already complicated for me.

Weird the error is that it didn't find the package. Have you looked into this: https://docs.chocolatey.org/en-us/troubleshooting#package-not-installed.the-package-was-not-found-with-the-sources-listed

Maybe you didn't compile the package with choco pack, like mentioned there? I see that the sources are being set explicitly to: Source(s): 'c:\cached-packages;https://community.chocolatey.org/api/v2/' I assume you were supposed to put the compiled package on c:\cached-packages could it have been on some other place instead?

Also looking at this here seems that it didn't even try to look on c:\cached-packages:

2024-04-14 14:42:55,987 5496 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
2024-04-14 14:42:56,598 5496 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
2024-04-14 14:42:57,316 5496 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.63.0')
2024-04-14 14:42:57,581 5496 [INFO ] - [NuGet]   NotFound https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.63.0') 261ms
2024-04-14 14:42:57,613 5496 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0
2024-04-14 14:42:57,958 5496 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0 340ms
2024-04-14 14:42:58,160 5496 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap'
2024-04-14 14:42:58,472 5496 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap' 309ms
2024-04-14 14:42:58,487 5496 [ERROR] - altsnap not installed. The package was not found with the source(s) listed.

Don't get me wrong, you probably already looked into this extensively, but for me looking at that error "feels" like some of those simple mistakes that when you find it you just want to slap your forehead 😄. Also I don't have any experience with publishing packages to chocolatey so I probably have no idea what I'm talking about (I'm just hoping to serve as somewhat of a rubber duck to help you debugging 🦆 )

RamonUnch commented 4 months ago

here is the compiled nupkg file that I uploaded.

altsnap.1.63.nupkg.txt

(this is actually also a zip file you can you can open with 7-zip or similar software). my protocol is always the same. If you encounter any problems with he above, you can report, I will be happy to find the reason. I am not familiar with advanced scripting languages either.

my protocol:

Update version number in altsnap.nuspec
Update URL and SHA256 in tools\chocolateyInstall.ps1
for both x64 and i386 builds

choco pack

Test:
choco install altsnap -s.
choco uninstall altsnap -s.

choco push altsnap.1.XX.nupkg --source https://push.chocolatey.org/

It used to work.

alex-ds13 commented 4 months ago

I assume the .txt extension was just for inserting it on github?! I've managed to upgrade to 1.63 just fine with that nupkg (after removing the .txt extension).

Funny thing is that while it had the .txt extension the error was exactly altsnap was not found with the source(s) listed. which is the same error that is showing on the chocolatey validation system.

But the package itself is fine. It upgraded properly. So its either a problem on the chocolatey validation system or with the way or what you are pushing. Have you tried contacting someone from chocolatey?

RamonUnch commented 4 months ago

I assume the .txt extension was just for inserting it on github?! I've managed to upgrade to 1.63 just fine with that nupkg (after removing the .txt extension).

Indeed github does not like random file extensions.

But the package itself is fine. It upgraded properly. So its either a problem on the chocolatey validation system or with the way or what you are pushing. Have you tried contacting someone from chocolatey?

I tried re-validation, but it failed the same way. I did not try to contact someone yet. My motivation to maintain the package is decreasing if it becomes an evolving process. I guess I could take the WinGet package on hand it maybe more logical than choco, now that it is by default on Win11, but I digress.

RamonUnch commented 4 months ago

Also when the package is just uploaded to choco and not yet validated you can still force the update with the --version parameter. Wwhen I did that it was working fine on two different computers so I was assuming everything it was correct.

alex-ds13 commented 4 months ago

Also when the package is just uploaded to choco and not yet validated you can still force the update with the --version parameter. Wwhen I did that it was working fine on two different computers so I was assuming everything it was correct.

Yeah. I sometimes do that too when I notice there is a new version that chocolatey still doesn't show me on outdated.

I noticed now that there is one difference between the 1.62 and 1.63 verification test which is that 1.62 used Windows Server 2019 while 1.63 used Windows server 2012 (however version 1.61 also used Windows Server 2012 and passed without a problem).

altsnap v1.62 - Passed - Package Test Results

    https://community.chocolatey.org/packages/altsnap/1.62
    Tested 19 May 2024 20:49:59 +00:00
    Tested against chocolatey/test-environment 3.0.0 (Windows Server 2019)
    Tested with the latest version of choco, possibly a beta version.
    Tested with chocolatey-package-verifier service v1.1.0
    Install was successful.
    Uninstall was successful.
altsnap v1.63 - Failed - Package Test Results

    https://community.chocolatey.org/packages/altsnap/1.63
    Tested 15 Apr 2024 05:32:41 +00:00
    Tested against win2012r2x64 (Windows Server 2012 R2 x64)
    Tested with the latest version of choco, possibly a beta version.
    Tested with chocolatey-package-verifier service v1.0.1
    Install failed. Note that the process may have hung, indicating a not completely silent install. This is usually seen when the last entry in the log is calling the install. This can also happen when a window pops up and needs to be closed to continue.

The weird part is that version 1.63 goes on just like version 1.62 did until a point where it errors while on version 1.62 it kept going.

1.62:

2024-05-19 20:49:16,688 4700 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
2024-05-19 20:49:17,325 4700 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
2024-05-19 20:49:17,941 4700 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.62.0')
2024-05-19 20:49:18,138 4700 [INFO ] - [NuGet]   NotFound https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.62.0') 210ms
2024-05-19 20:49:18,172 4700 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0
2024-05-19 20:49:18,424 4700 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0 253ms
2024-05-19 20:49:18,613 4700 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap'
2024-05-19 20:49:18,903 4700 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap' 286ms
2024-05-19 20:49:18,989 4700 [DEBUG] - Resolving resource DependencyInfoResource for source c:\cached-packages
2024-05-19 20:49:19,626 4700 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
2024-05-19 20:49:19,660 4700 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.62.0')
2024-05-19 20:49:19,707 4700 [INFO ] - [NuGet]   NotFound https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.62.0') 44ms
2024-05-19 20:49:19,707 4700 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0
2024-05-19 20:49:19,721 4700 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap'

Here version 1.62 also gives the first NuGet] NotFound, but version 1.63 stops at this point while version 1.62 kept going like this:

2024-05-19 20:49:19,926 4700 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2024-05-19 20:49:19,941 4700 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
2024-05-19 20:49:20,001 4700 [DEBUG] - Attempting to delete file "".
2024-05-19 20:49:20,059 4700 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/package/altsnap/1.62
2024-05-19 20:49:20,533 4700 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/package/altsnap/1.62 461ms
2024-05-19 20:49:20,563 4700 [INFO ] - [NuGet] Acquiring lock for the installation of altsnap 1.62
2024-05-19 20:49:20,656 4700 [INFO ] - [NuGet] Acquired lock for the installation of altsnap 1.62
2024-05-19 20:49:21,039 4700 [INFO ] - [NuGet] Installed altsnap 1.62 from https://community.chocolatey.org/api/v2/ with content hash bYGn4gqRzeHOZ2BQ9+YldNqXh7Mw3JAaZ+CfI/+mXqgstfxgzVUdrCTZIDaATxsW5jr6RnXK00a5EnvGvO+9DA==.
2024-05-19 20:49:21,080 4700 [INFO ] - [NuGet] Adding package 'altsnap.1.62.0' to folder 'C:\ProgramData\chocolatey\lib'
2024-05-19 20:49:21,176 4700 [INFO ] - [NuGet] Added package 'altsnap.1.62.0' to folder 'C:\ProgramData\chocolatey\lib'

1.63:

2024-04-14 12:54:45,074 2180 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
2024-04-14 12:54:45,793 2180 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
2024-04-14 12:54:46,746 2180 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.63.0')
2024-04-14 12:54:47,092 2180 [INFO ] - [NuGet]   NotFound https://community.chocolatey.org/api/v2/Packages(Id='altsnap',Version='1.63.0') 322ms
2024-04-14 12:54:47,121 2180 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0
2024-04-14 12:54:47,419 2180 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='altsnap'&semVerLevel=2.0.0 286ms
2024-04-14 12:54:47,668 2180 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap'
2024-04-14 12:54:48,046 2180 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='altsnap'&$skiptoken='1709065103127','1.47.0','altsnap' 369ms
2024-04-14 12:54:48,074 2180 [ERROR] - altsnap not installed. The package was not found with the source(s) listed.
 Source(s): 'c:\cached-packages;https://community.chocolatey.org/api/v2/'

Can you try to run the push command again with--debug --verbose --noop like mentioned here to see if it gives more information?

alex-ds13 commented 4 months ago

Also I noticed now that both your tries were on the same day. Maybe there was something weird with chocolatey's backend that day and if you try again it might just work.

alex-ds13 commented 4 months ago

One last thing, since all the sources I've looked through use it this way could you try specifying the source like this? choco push altsnap.1.XX.nupkg --source="'https://push.chocolatey.org/'"

Notice the --source="'<PUSH URL>'" with both quote types. It might not do anything but it doesn't hurt to try!

RamonUnch commented 4 months ago

I will try again with 1.64 when it will be ready (hopefully soon).