-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
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
vscode
Expected/Current Behaviour
When updating the version with checkversion.ps1 and a specific -Version, the package uses the latest release's hash codes instead of the specified version, due to incorrect hash URLs in the manifest.
Steps to Reproduce
PS> checkversion.ps1 vscode -Update -Version 1.99.3 -ForceUpdate
vscode: 1.99.3 (scoop version is 1.107.1) autoupdate available
Autoupdating vscode
Searching hash for dl.7z in https://update.code.visualstudio.com/api/update/win32-x64-archive/stable/latest
Found: f2bdbb4acf43d9d2d721ab5b2dba7ba02ad214d71ec78ad3b3b43fede31187af using Json Mode
Searching hash for dl.7z in https://update.code.visualstudio.com/api/update/win32-arm64-archive/stable/latest
Found: 7797e80afb6a8b1f73003e47670576c7d9e1867ba86db77c87b1e4f92f1322e0 using Json Mode
Writing updated vscode manifest
PS> scoop update vscode
vscode: 1.98.1 -> 1.99.3
Updating one outdated app:
Updating 'vscode' (1.98.1 -> 1.99.3)
Downloading new version
dl.7z (143.6 MB) [======================================================================================] 100%
Checking hash of dl.7z ... ERROR Hash check failed!
App: extras/vscode
URL: https://update.code.visualstudio.com/1.99.3/win32-x64-archive/stable#/dl.7z
First bytes: 50 4B 03 04 14 00 00 00
Expected: 63c953399ba60de2bdadf767ec49daa6a7bd19bf57f61b0274b57291bdab685c
Actual: da542001b746381863359e9124b1dfd5851f29770c020a74b519f2d57370c50b
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=vscode%401.99.3%3a+hash+check+failedPossible Solution
The issue is due to incorrect API URLs in the manifest; this diff makes it fetch the exact versions' hashes:
diff --git i/bucket/vscode.json w/bucket/vscode.json
index 2358b88d56..73b62becb2 100644
--- i/bucket/vscode.json
+++ w/bucket/vscode.json
@@ -78,14 +78,14 @@
"64bit": {
"url": "https://update.code.visualstudio.com/$version/win32-x64-archive/stable#/dl.7z",
"hash": {
- "url": "https://update.code.visualstudio.com/api/update/win32-x64-archive/stable/latest",
+ "url": "https://update.code.visualstudio.com/api/versions/$version/win32-x64-archive/stable",
"jsonpath": "$.sha256hash"
}
},
"arm64": {
"url": "https://update.code.visualstudio.com/$version/win32-arm64-archive/stable#/dl.7z",
"hash": {
- "url": "https://update.code.visualstudio.com/api/update/win32-arm64-archive/stable/latest",
+ "url": "https://update.code.visualstudio.com/api/versions/$version/win32-arm64-archive/stable",
"jsonpath": "$.sha256hash"
}
}I was about to submit a PR with this, and then saw you wanted an issue first.
Scoop and Buckets 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:
5262fe67ad (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (Closes #7478)
'extras' bucket:
1db911a523 (HEAD -> master, origin/master, origin/HEAD) stranslate: Update to version 2.0.4, fix autoupdate
'versions' bucket:
49fe252f2d (HEAD -> master, origin/master, origin/HEAD) yt-dlp-master: Update to version 2026.01.03.203053
'nirsoft' bucket:
9a61b6d (HEAD -> master, origin/master, origin/HEAD) Update url list [ci skip]
'sysinternals' bucket:
ebddef5 (HEAD -> main, origin/main, origin/HEAD) sysinternals-suite: Update to version 2025.12.16
'nerd-fonts' bucket:
5531b8ce (HEAD -> master, origin/master, origin/HEAD) LXGWNeoZhiSong: Update to version 1.057
'nonportable' bucket:
8fba2859 (HEAD -> master, origin/master, origin/HEAD) goodsync-np: Update to version 12.9.22
'assemblyai' bucket:
4633370 (HEAD -> main, origin/main, origin/HEAD) Scoop formula update for assemblyai version v1.18.1
'local' bucket:
45e2ec0 (HEAD -> master) Witsy 3.2.0Scoop Config
last_update : 1/3/2026 6:23:55 PM
alias : @{allin=scoop-allin; recent=scoop-recent; i=scoop-i; s=scoop-s; rm=scoop-rm; checkver=scoop-checkver; dirty=scoop-dirty; def=scoop-def; versions=scoop-versions; fake-update=scoop-fake-update; shims=scoop-shims; dl=scoop-dl; aliases=scoop-aliases; up=scoop-up;
cv=scoop-cv; lver=scoop-lver}
scoop_branch : master
scoop_repo : https://github.com/ScoopInstaller/Scoop
show_update_log : FalsePowerShell Version
Name Value
---- -----
PSVersion 7.1.7
PSEdition Core
GitCommitId 7.1.7
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Additional Softwares
No response