Open leumasme opened 3 weeks ago
Could you make a PR for the improvement?
~~The default config.xml isn't directly included in the github release zip so I'm not sure how this should ideally be solved without just hardcoding the whole config.xml into the scoop installer script to be written on install. Maybe a syncthing dev could give advice on this? I might open an issue there.~~
Edit: Nevermind; there is a --no-upgrade
CLI argument. I guess it could be added to the shim arguments so it won't update when running via the shim at least?
Also there is a STNOUPGRADE
environment variable that can be set to block syncthing upgrades. It's syncthing specific (ST prefix = SyncThing), so it could be set globally if no other syncthing installs are on the system? Idk which is the preferred way here.
Prerequisites
Package Name
syncthing
Expected/Current Behaviour
syncthing is automatically updating itself by default, desyncing what is actually installed and what version scoop thinks is installed.
Steps to Reproduce
Just having syncthing open will cause it to check for an update and automatically install it every 12 hours. https://docs.syncthing.net/v1.28.0/users/config#config-option-options.autoupgradeintervalh
Possible Solution
Currently, users can workaround by manually disabling auto updates: Advanced onfiguration -> Options -> Auto Upgrade Interval (hours) = 0 Ideally, this should be set by default when installing syncthing via scoop. It's stored in
persist/syncthing/config/config.xml
autoUpgradeIntervalH
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response