ScoopInstaller / Scoop

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

[Bug] Why didn't I upgrade scoop myself successfully #6063

Open dong-lufei opened 1 month ago

dong-lufei commented 1 month ago

Bug Report

https://github.com/ScoopInstaller/Main/issues/5883 I used scoop update to upgrade scoop itself ?

Current Behavior

Expected Behavior

Additional context/output

Possible Solution

System details

Windows version: [e.g. 7, 8, 10, 11] 11 OS architecture: [e.g. 32bit, 64bit, arm64]

PowerShell version: [output of "$($PSVersionTable.PSVersion)"] PowerShell 7.4.3 Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

//# Your configuration here

$ scoop config

aria2-enabled                   : True
aria2-split                     : 32
aria2-max-connection-per-server : 16
aria2-min-split-size            : 1M
aria2-warning-enabled           : False
aria2-retry-wait                : 4
aria2-cnabled                   : True
last_update                     : 2024/7/17 12:56:57
scoop_repo                      : https://github.com/ScoopInstaller/Scoop
scoop_branch                    : master
niheaven commented 1 month ago

Remove .git folder and try again.

image

dong-lufei commented 1 month ago

@niheaven Try to delete the.git folder under the scoop folder, and then upgrade still can not work, as shown in the following video

https://github.com/user-attachments/assets/96934bd7-afd2-42cb-8ba2-495387c347a9

niheaven commented 1 month ago

What's the output of scoop which scoop?

dong-lufei commented 1 month ago

@niheaven

# dong @ lufei in E:\test [21:10:53]
$ scoop which scoop
'scoop' not found / not a scoop shim.
niheaven commented 1 month ago

What about Get-Command scoop?

dong-lufei commented 1 month ago

@niheaven I don't know. It's just amazing

# dong @ lufei in E:\test [15:28:59]
$ scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
a3790f10a (HEAD -> master, origin/master, origin/HEAD) sidekick-browser: Update to version 122.60.1.40405-4e57373

'java' bucket:
5c1770d3 (HEAD -> master, origin/master, origin/HEAD) zulufx8-jre: Update to version 8.80.0.17

'main' bucket:
c1ca821e4 (HEAD -> master, origin/master, origin/HEAD) jdtls: Update to version 1.38.0-202407200154

'versions' bucket:
d49764ea0 (HEAD -> master, origin/master, origin/HEAD) neovim-nightly@0.11.0-442: Fix hash (Closes #1851)

'wsl' bucket:
9689ba6 (HEAD -> master, origin/master, origin/HEAD) resolves issue #4

# dong @ lufei in E:\test [15:29:12]
$ scoop which scoop
'scoop' not found / not a scoop shim.
# dong @ lufei in E:\test [15:29:18] C:2
$ scoop config

aria2-enabled                   : True
aria2-split                     : 32
aria2-max-connection-per-server : 16
aria2-min-split-size            : 1M
aria2-warning-enabled           : False
aria2-retry-wait                : 4
aria2-cnabled                   : True
last_update                     : 2024/7/20 15:28:59
scoop_branch                    : master
scoop_repo                      : https://github.com/ScoopInstaller/Scoop

# dong @ lufei in E:\test [15:29:25]
niheaven commented 1 month ago

What about Get-Command scoop?

Maybe your scoop installation is broken, so what's this command output?

dong-lufei commented 1 month ago

@niheaven

$ Get-Command scoop

CommandType     Name                             Version    Source
-----------     ----                             -------    ------
ExternalScript  scoop.ps1                                   D:\scoop\scoopUserApps\shims\scoop.ps1

# dong @ lufei in E:\test [00:56:11]
niheaven commented 1 month ago

So you have two git folder, and you are using D:\scoop\scoopUserApps...

Please migrate these two and try update again, if failed, delete .git in scoop.

dong-lufei commented 1 month ago

The.git folder I can find has been deleted, maybe it was installed in the C drive before and uninstalled is not clean. Next time I format my hard drive to reload scoop try