Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Improve Update failed error message #4675

Open
ShadyAbuKalam opened this issue Jan 19, 2022 · 8 comments
Open

[Feature Request] Improve Update failed error message #4675

ShadyAbuKalam opened this issue Jan 19, 2022 · 8 comments

Comments

@ShadyAbuKalam
Copy link

Bug Report

Current Behavior

Issuing scoop update, gives the following
Updating Scoop...
Update failed.

Expected Behavior

scoop itself is updated

Additional context/output

Possible Solution

System details

Windows version: [e.g. 7, 8, 10]
10
OS architecture: [e.g. 32bit, 64bit]
64bit
PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
5.1.18362.1801
Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

Empty file

@rashil2000
Copy link
Member

Scoop Configuration
Empty file

Your install is botched. It should never be empty.

@ShadyAbuKalam
Copy link
Author

I checked the configuration file from CMD and it's empty, but from powershell I have the following:

{
    "SCOOP_BRANCH":  "master",
    "SCOOP_REPO":  "https://github.com/ScoopInstaller/Scoop",
    "lastupdate":  "2022-01-12T18:15:24.5024135+02:00"
}

I tried to git clone other repos directly and it failed silently also. I think my git installation has an issue.
I changed the current junction of git to an older version "2.33.1" and it worked, then updated git to "2.34.1" and it worked again.

I think, there was something wrong with git, but shall not scoop indicate that there is an issue ?

@rashil2000
Copy link
Member

but shall not scoop indicate that there is an issue ?

Hmm, yes, the error message can be improved.

@rashil2000 rashil2000 changed the title [Bug] Scoop update fails silently. [Feature Request] Improve Update failed error message Jan 19, 2022
@niheaven niheaven closed this as completed Mar 8, 2022
@rashil2000
Copy link
Member

@niheaven I think this still needs work, not fixed yet

@darthwalsh
Copy link
Contributor

I've had the problem with "You have unstaged changes." on one machine, and now on another machine. The workaround to remove and add two buckets worked, but it feels like ScoopInstaller/Main#3692 might not be fixed? scoop v0.3.1.

The cause might be a script I run every night, that basically runs scoop update * ; scoop cleanup --cache * and then reboots if there's a pending reboot?

@rashil2000
Copy link
Member

It should only happen once; we pushed a fix for it. Is it happening again and again on the same device?

@darthwalsh
Copy link
Contributor

@rashil2000 Yes, it happened again and again until I manually ran the bucket rm bucket add workaround.

The "You have unstaged changes." problem happened the first time on 2022-03-09, and happened every night the script ran (218 times) until I manually applied the workaround. (I haven't used this laptop much last year.)

The error was with the main and extras bucket, so I'm not 100% confident I was running an updated version of scoop all this time. But I see in my command history I ran scoop --version and got "v0.3.1" before I did the workaround to fix the broken buckets.

@rashil2000
Copy link
Member

No, I was asking whether it happens again after you apply the rm bucket workaround. The rm bucket workaround was needed (just once) when we pushed a fix for this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants