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] Allow other app update/install/whatever actions to proceed after one fails #5063

Closed
studoot opened this issue Jul 25, 2022 · 1 comment

Comments

@studoot
Copy link

studoot commented Jul 25, 2022

Feature Request

Is your feature request related to a problem? Please describe.

I'm trying to scoop update --all, which shows this list of apps to be updated:

gnuplot: 5.4.3 -> 5.4.4
go: 1.18.3 -> 1.18.4
graphviz: 4.0.0 -> 5.0.0
imagemagick: 7.1.0-39 -> 7.1.0-44
just: 1.2.0 -> 1.3.0
mercurial: 6.1.4 -> 6.2
rustup: 1.24.3 -> 1.25.1
watchexec: 1.20.3 -> 1.20.4

Unfortunately, gnuplot's download server (sourceforge.net) is down right now, and scoop update throws an exception:

Updating 8 outdated apps:
Updating 'gnuplot' (5.4.3 -> 5.4.4)
Downloading new version
A connection attempt failed because the connected party did not properly respond after a 
period of time, or established connection failed because connected host has failed to respond   
204.68.111.105:443
At C:\Users\u404261\scoop\apps\scoop\current\lib\install.ps1:107 char:9
+         throw $e
+         ~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], SocketException
    + FullyQualifiedErrorId : A connection attempt failed because the connected party did not   
   properly respond after a period of time, or established connection failed because connecte   
  d host has failed to respond 204.68.111.105:443

This causes the entire update workflow to terminate.

Describe the solution you'd like

Provide a config setting and/or command-line option to allow me to (in effect) say "ignore failed updates", which would report that scoop couldn't update gunplot, but then went on to update (or try to update) the other 7 apps.

Preferably, scoop would also re-report failed updates when all work has been completed.

This sort of setting should also be used for any sub-command that can accept multiple <app> parameters, whether expressed explicitly or implicitly using --all or '*' for the <app> command-line parameter.

Describe alternatives you've considered

N/A

@rashil2000
Copy link
Member

Duplicate of #4135

@rashil2000 rashil2000 marked this as a duplicate of #4135 Jul 25, 2022
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

2 participants