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

Created shim doesn't open the most recent version of syncthing installed via chocolatey #119

Open
PyroDevil opened this issue Nov 3, 2020 · 1 comment
Labels

Comments

@PyroDevil
Copy link

PyroDevil commented Nov 3, 2020

I used chocolaty to install syncthing and update it regularly as well.

Here is a log of the last update:

syncthing v1.11.1 [Approved]
syncthing package files upgrade completed. Performing other installation steps.
Extracting 64-bit C:\ProgramData\chocolatey\lib\syncthing\tools\syncthing-windows-amd64-v1.11.1_x64.zip to C:\ProgramData\chocolatey\lib\syncthing\tools...
C:\ProgramData\chocolatey\lib\syncthing\tools
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 ShimGen has successfully created a shim for syncthing.exe
 ShimGen has successfully created a shim for syncthing.exe
 ShimGen has successfully created a shim for syncthing.exe
 ShimGen has successfully created a shim for syncthing.exe
 ShimGen has successfully created a shim for syncthing.exe
 ShimGen has successfully created a shim for syncthing.exe
 The upgrade of syncthing was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\syncthing\tools'As you see here the 1.11.1 version of syncthing was installed, and ShimGen reported that it successfully created shims. However starting syncthing via the shim starts an old version:
PS C:\> & 'C:\ProgramData\chocolatey\bin\syncthing.exe'
[monitor] 16:33:13 INFO: Log output saved to file "C:\Users\username\AppData\Local\Syncthing\syncthing.log"
[start] 16:33:13 INFO: syncthing v1.9.0 "Fermium Flea" (go1.15.1 windows-amd64) teamcity@build.syncthing.net 2020-08-28 05:48:25 UTC

I would have expected that the most current version is started.

The reason is probably that the syncthing chocolatey packages installs multiple versions and shingen uses lexical order for creating the shims:

PS C:\> ls C:\ProgramData\chocolatey\lib\syncthing\tools\


    Directory: C:\ProgramData\chocolatey\lib\syncthing\tools

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2020-11-03    16:16                syncthing-windows-amd64-v1.10.0
d----          2020-11-03    12:51                syncthing-windows-amd64-v1.11.1
d----          2020-11-03    16:16                syncthing-windows-amd64-v1.6.1
d----          2020-11-03    16:16                syncthing-windows-amd64-v1.7.1
d----          2020-11-03    16:16                syncthing-windows-amd64-v1.8.0
d----          2020-11-03    16:16                syncthing-windows-amd64-v1.9.0
-a---          2020-11-03    16:16            425 chocolateyInstall.ps1
-a---          2020-11-03    16:16          17175 LICENSE.txt
-a---          2020-11-03    16:16        9788512 syncthing-windows-386-v1.11.1_x32.zip
-a---          2020-11-03    16:16       10063860 syncthing-windows-amd64-v1.11.1_x64.zip
-a---          2020-11-03    16:16            523 VERIFICATION.txt

IDK if this is a shimgen, a chocolatey or a syncthing packaging issue.

┆Issue is synchronized with this Gitlab issue by Unito

@gep13 gep13 transferred this issue from chocolatey/shimgen Feb 24, 2022
@gep13
Copy link
Member

gep13 commented Feb 24, 2022

Based on some changes happening to the Chocolatey repositories, this issue has been moved from the chocolatey/shimgen repository to the chocolatey/home repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants