ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.04k stars 1.4k forks source link

[Bug] I cannot update some apps if I don't use ‘@’ to specify the latest version #5640

Closed pein0saga closed 1 year ago

pein0saga commented 1 year ago

Bug Report

Current Behavior

I cannot update some apps if I don't use ‘@’ to specify the latest version

Expected Behavior

Update from 1.6.0 to latest version 1.6.1 directly

Additional context/output

PS C:\Users\Administrator> scoop update main/bbdown
Updating Scoop...
Updating 'anderlli0053_DEV-tools' bucket...
 * f2c51bf57b awsv1: Update to version 1.29.45                           35 minutes ago
 * 75a0cfe267 aardio_dodorz: Update to version 35.69.3                   35 minutes ago
 * a3a2bf5206 aardio: Update to version 35.69.3                          35 minutes ago
 * 6d65f3b6a3 chromedriver-canary: Update to version 119.0.6002.0        5 hours ago
 * d4eeb70b4d banana-cake-pop: Update to version 9.0.4                   5 hours ago
 * 6e9909f131 auto-dark-mode-np: Update to version 10.4.0.35             5 hours ago
 * 00b2b61385 amass: Update to version 4.2.0                             5 hours ago
 * f2a1ccc401 10x-np: Update to version 1.0.76                           5 hours ago
 * 8bd1282041 autohotkey_ScoopInstaller: Update to version 2.0.8         9 hours ago
 * a5fff84143 autohotkey_HUMORCE: Update to version 2.0.8                9 hours ago
 * 73b2f4b282 autohotkey2: Update to version 2.0.8                       9 hours ago
 * 7c1b16f96e autohotkey: Update to version 2.0.8                        9 hours ago
 * fd1a1c7ff4 AutoHotkey2-UserInstall: Update to version 2.0.8           9 hours ago
 * 09e6a90be1 AutoHotkey2-Portable: Update to version 2.0.8              9 hours ago
 * e9ff052260 AutoHotkey2-Install: Update to version 2.0.8               9 hours ago
 * 61d38e6c7b AutoHotkey-Portable: Update to version 2.0.8               9 hours ago
 * f2aa6b1694 chromium-crlset: Update to version 8232                    13 hours ago
 * 5d752e5059 chrome-canary-portable: Update to version 119.0.6001.0     13 hours ago
 * da1799c5c1 bk: Update to version 3.13.2309.10391                      13 hours ago
 * 10587b6460 beef-nightly: Update to version 0.43.5.09102023            13 hours ago
 * 0347a0e5c3 Az.StackHCI: Update to version 2.2.0                       13 hours ago
 * 7f2392b41b 10x-np: Update to version 1.0.73                           13 hours ago
 * fe4e2c4a80 chatall_hu3rror: Update to version 1.42.68                 17 hours ago
 * 85f39b2292 chatall_DoveBoy: Update to version 1.42.68                 17 hours ago
 * d5c0d7fffc chatall: Update to version 1.42.68                         17 hours ago
 * 8bd9f2bd85 certify: Update to version 1.8.0                           17 hours ago
 * ba5b84cf5e black: Update to version 23.9.1                            17 hours ago
 * 9e585cddb8 autodarkmode: Update to version 10.4.0.35                  17 hours ago
 * 9f983d93df auto-dark-mode: Update to version 10.4.0.35                17 hours ago
 * 55db0e4b5f amass_hoilc: Update to version 4.2.0                       17 hours ago
 * 6c9e811318 ChatALL-Portable: Update to version 1.42.68                17 hours ago
 * cc8eda6c3b AutoDarkMode-Portable: Update to version 10.4.0.35         17 hours ago
 * a7b13793b9 chromedriver-canary: Update to version 119.0.6001.0        20 hours ago
 * 3fbf224cfa bizhawk-dev: Update to version 3514-20230911-a7ee68f4      20 hours ago
 * 05f1e520b1 chromium-crlset: Update to version 8231                    25 hours ago
 * 1a82188586 chrome-canary-portable: Update to version 119.0.5999.0     25 hours ago
 * 49224e9261 caprine-portapps: Update to version 2.58.1-38              25 hours ago
 * 9393330785 brave-portapps: Update to version 1.57.62-88               25 hours ago
 * 81a2255e70 chromedriver-canary: Update to version 119.0.6000.0        29 hours ago
 * bdffa2b22e 64tass: Update to version 1.59.3120                        29 hours ago
Updating 'extras' bucket...
 * 174886fd9 propertree: Update to version 0.2023.09.11                  40 minutes ago
 * a533a1f7d eclipse-scout: Update to version 2023-09                    40 minutes ago
 * 50e2c27d4 eclipse-rcp: Update to version 2023-09                      40 minutes ago
 * 83ce718e4 eclipse-php: Update to version 2023-09                      40 minutes ago
 * 487fd3b1e eclipse-parallel: Update to version 2023-09                 40 minutes ago
 * 283e40704 eclipse-modeling: Update to version 2023-09                 40 minutes ago
 * 36d38cf16 eclipse-jee: Update to version 2023-09                      40 minutes ago
 * e42a11274 eclipse-dsl: Update to version 2023-09                      40 minutes ago
 * b42dce398 eclipse-cpp: Update to version 2023-09                      40 minutes ago
 * b2bc9ae32 eclipse-committers: Update to version 2023-09               40 minutes ago
 * 36219fbed telegram-downloader: Update to version 0.10.0               5 hours ago
 * e97bb2d9c standardnotes: Update to version 3.172.15                   5 hours ago
 * bc6778b01 sbom-tool: Update to version 1.6.1                          5 hours ago
 * 56478ed99 oranda: Update to version 0.4.0                             5 hours ago
 * 567dc1c79 miru: Update to version 4.4.6                               5 hours ago
 * 84735906f fork: Update to version 1.89.1                              5 hours ago
 * 440af693f filelight: Update to version 23.08.0-1467                   5 hours ago
 * c80dea6db electerm: Update to version 1.32.6                          5 hours ago
 * b703ec34b camunda-modeler: Update to version 5.15.0                   5 hours ago
 * d606cd5cf banana-cake-pop: Update to version 9.0.4                    5 hours ago
 * 3bbecf8be miru: Update to version 4.4.3                               9 hours ago
 * 22a4bf67b metasploit-framework: Update to version 6.3.34-2023091110.. 9 hours ago
 * 6c505e406 geogebra: Update to version 6.0.801.0                       9 hours ago
 * 9d3c0a9a9 elisa: Update to version 23.08.0-1619                       9 hours ago
 * c23e67135 cryptomator: Update to version 1.10.0                       9 hours ago
 * 1475893ff autohotkey: Update to version 2.0.8                         9 hours ago
 * ba82ff234 sidekick-browser: Update to version 114.50.2.35132-a58b5dd  13 hours ago
 * 88e9ec100 playnite: Update to version 10.19                           13 hours ago
 * 7f8422301 openai-translator: Update to version 0.0.84                 13 hours ago
 * 54fc1f1d9 lark: Update to version 6.11.12                             13 hours ago
 * c4a133f57 komga: Update to version 1.4.0                              13 hours ago
 * 92ab6b8aa kate: Update to version 23.08.0-2153                        13 hours ago
 * eba3fc7e6 jackett: Update to version 0.21.770                         13 hours ago
 * 01d01ec32 sidekick-browser: Update to version 114.51.1.35481-d6e815c  17 hours ago
 * b62ee1172 praat: Update to version 6.3.17                             17 hours ago
 * 0a4255c8e okular: Update to version 23.08.0-1515                      17 hours ago
 * e0f242b74 miru: Update to version 4.4.5                               21 hours ago
 * 705281c4a dolphin: Update to version 23.08.0-2024                     21 hours ago
 * bdd479736 sidekick-browser: Update to version 114.50.2.35132-a58b5dd  25 hours ago
 * 34d942991 netron: Update to version 7.1.8                             25 hours ago
 * 31182753c hibit-uninstaller: Update to version 3.1.60                 25 hours ago
 * ead5cdf37 sidekick-browser: Update to version 114.51.1.35481-d6e815c  29 hours ago
 * cf6dc294e mc: Update to version 4.8.29                                29 hours ago
 * 39cb58448 filelight: Update to version 23.08.0-1466                   29 hours ago
Updating 'main' bucket...
 * 32430ea73 telegraf: Update to version 1.28.0                          38 minutes ago
 * 84567a8c8 ruff: Update to version 0.0.288                             38 minutes ago
 * a7537ce23 jx: Update to version 3.10.107                              38 minutes ago
 * a213c4221 grype: Update to version 0.67.0                             38 minutes ago
 * 2bf6efe72 graphviz: Update to version 9.0.0                           38 minutes ago
 * 25b8ba4ee gopass: Update to version 1.15.8                            38 minutes ago
 * 9cf1c430c binaryen: Update to version 115                             38 minutes ago
 * 0698eb3f8 sqlite: Update to version 3.43.1                            5 hours ago
 * 881792935 rclone: Update to version 1.64.0                            5 hours ago
 * 568198a28 jfrog: Update to version 2.46.3                             5 hours ago
 * cd0770578 flyctl: Update to version 0.1.91                            5 hours ago
 * b33311a5f tfsec: Update to version 1.28.4                             13 hours ago
 * e32456a5a red: Update to version 11sep23                              13 hours ago
 * 83a7762dd red-view: Update to version 11sep23                         13 hours ago
 * 06fc47525 red-toolchain: Update to version 11sep23                    13 hours ago
 * a1e6a4739 spicetify-cli: Update to version 2.23.2                     21 hours ago
 * 9ce9b4a66 amass: Update to version 4.2.0                              21 hours ago
 * 64ded6872 y-cruncher@0.8.2.9522: Fix hash (Closes #5091)              24 hours ago
 * 87c4b3388 stylua: Update to version 0.18.2                            25 hours ago
 * 154fa6f29 jq@1.7: Download from new jqlang organization (#5089)       27 hours ago
Updating 'scoop-bucket' bucket...
Scoop was updated successfully!
bbdown: 1.6.0 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
PS C:\Users\Administrator> scoop install main/bbdown
WARN  'bbdown' (1.6.0) is already installed.
Use 'scoop update bbdown' to install a new version.

PS C:\Users\Administrator> scoop bucket rm anderlli0053_DEV-tools
PS C:\Users\Administrator> scoop install main/bbdown
WARN  'bbdown' (1.6.0) is already installed.
Use 'scoop update bbdown' to install a new version.
PS C:\Users\Administrator> scoop update main/bbdown
bbdown: 1.6.0 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
PS C:\Users\Administrator> scoop bucket rm main
PS C:\Users\Administrator> scoop bucket add main https://github.com/ScoopInstaller/Main
Checking repo... OK
The main bucket was added successfully.
PS C:\Users\Administrator> scoop update main/bbdown
bbdown: 1.6.0 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'

Then I use @version things will succeed

PS C:\Users\Administrator> scoop install bbdown@1.6.1
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
WARN  To disable this warning, run 'scoop config aria2-warning-enabled false'.
Installing 'ffmpeg' (6.0) [64bit] from main bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 98ec42|OK  |   6.8MiB/s|D:/Applications/Scoop/cache/ffmpeg#6.0#https_www.gyan.dev_ffmpeg_builds_packages_ffmpeg-6.0-full_build.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of ffmpeg-6.0-full_build.7z ... ok.
Extracting ffmpeg-6.0-full_build.7z ... done.
Linking D:\Applications\Scoop\apps\ffmpeg\current => D:\Applications\Scoop\apps\ffmpeg\6.0
Creating shim for 'ffmpeg'.
WARN  Overwriting shim ('ffmpeg.exe' -> 'ffmpeg.exe') installed from ffmpeg-nightly
Creating shim for 'ffplay'.
WARN  Overwriting shim ('ffplay.exe' -> 'ffplay.exe') installed from ffmpeg-nightly
Creating shim for 'ffprobe'.
WARN  Overwriting shim ('ffprobe.exe' -> 'ffprobe.exe') installed from ffmpeg-nightly
Persisting fonts
'ffmpeg' (6.0) was installed successfully!
Installing 'bbdown' (1.6.1) [64bit]
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 658e22|OK  |    15MiB/s|D:/Applications/Scoop/cache/bbdown#1.6.1#https_github.com_nilaoda_BBDown_releases_download_1.6.1_BBDown_1.6.1_20230818_win-x64.zip
Download: Status Legend:
Download: (OK):download completed.
Checking hash of BBDown_1.6.1_20230818_win-x64.zip ... ok.
Extracting BBDown_1.6.1_20230818_win-x64.zip ... done.
Linking D:\Applications\Scoop\apps\bbdown\current => D:\Applications\Scoop\apps\bbdown\1.6.1
Creating shim for 'BBDown'.
'bbdown' (1.6.1) was installed successfully!
PS C:\Users\Administrator>

Possible Solution

System details

Scoop Configuration

{
  "root_path": "D:\\Applications\\Scoop",
  "global_path": "D:\\GlobalScoopApps",
  "last_update": "2023-09-12T05:03:55.3671730+08:00",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "scoop_branch": "master"
}
HUMORCE commented 1 year ago

The app installed with another manifest from another source(bucket/url/file/etc.), so you cannot directly update it.

The manifest added to main bucket as version 1.6.1

scoop install main/bbdown@1.6.0               # Cannot update

scoop install <another_bucket>/bbdown         # Cannot update to main/bbdown
scoop install c:\bbdown.json                  # Cannot update to main/bbdown
scoop install https://example.org/bbdown.json # Cannot update to main/bbdown

Why/Related:

main/f.lux and extras/f.lux are 2 completely different apps with same manifest name, they cannot be updated to another one of each other.

extras/flux is created for people who want installed them same time.