Skip to content

[Bug]: switchhosts is not maintained to the latest version because its built-in updater is outdated #17855

Description

@ExcuseLme

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

switchhosts

Expected/Current Behaviour

I expected the checkver mechanism to detect the latest available version of switchhosts (currently v5.0.0) and update the manifest accordingly.
However, the current version in the extras bucket remains v4.2.0. The newer releases v4.3.0 and v5.0.0 are not being detected.

Steps to Reproduce

1. Run scoop info switchhosts or check the manifest file buckets/extras/bucket/switchhosts.json.
2. Observe that the version shown is still v4.2.0.
3. Visit the official releases page at https://github.com/oldj/SwitchHosts/releases.
4. Note that v4.3.0 and v5.0.0 have been published, but they are not picked up by Scoop.

Possible Solution

Update the checkver regex in switchhosts.json to support the new filename format used in v4.3.0 and later. The current regex only matches the older naming pattern SwitchHosts_windows_installer_x64_.exe. The new filenames are like SwitchHosts-v4.3.0.6139-win-x64-installer.exe and SwitchHosts-5.0.0-windows-x64-setup.exe. A more flexible regex should be introduced.

Additionally, according to the official description, v5.0.0 has undergone significant changes. The extraction/unpacking logic for the exe installer may need to be updated accordingly.

Scoop and Buckets Version

> scoop --version
Current Scoop version:
b588a06e (HEAD -> master, tag: v0.5.3, origin/master, origin/HEAD) chore(release): Bump to version 0.5.3 (resync) (#6436)

'main' bucket:
83cfcfcd2a (HEAD -> master, origin/master, origin/HEAD) whosthere: Update to version 0.8.2

'extras' bucket:
c2ad341158 (HEAD -> master, origin/master, origin/HEAD) treesheets: Update to version 3188

'versions' bucket:
898d9d29f1 (HEAD -> master, origin/master, origin/HEAD) swift-nightly: Update to version 20260521.2

'nirsoft' bucket:
c683cb3 (HEAD -> master, origin/master, origin/HEAD) Update url list [ci skip]

'java' bucket:
f88a8394 (HEAD -> master, origin/master, origin/HEAD) dragonwell8-jdk: Update to version 8.29.28-8.0.492

'dorado' bucket:
85917705b (HEAD -> master, origin/master, origin/HEAD) wasm-tools: Update to version 1.250.0

'scoop-nerd-fonts' bucket:
f5f31f92 (HEAD -> master, origin/master, origin/HEAD) LXGWNeoZhiSong: Update to version 1.063

Scoop Config

> scoop config

last_update                     : 2026-5-22 周五 9:09:14
scoop_repo                      : https://github.com/ScoopInstaller/Scoop
scoop_branch                    : master
aria2-enabled                   : True
aria2-retry-wait                : 6
aria2-split                     : 8
aria2-max-connection-per-server : 8
abgox-abyss-bucket-name         : abyss

PowerShell Version

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.6.1
PSEdition                      Core
GitCommitId                    7.6.1
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    package-update-requestRequest for updating an existing package (Version Bump / Rename).

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions