ScoopInstaller / Scoop

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

[Feature] command option to only refresh buckets but not update #5538

Closed hgkamath closed 1 year ago

hgkamath commented 1 year ago

Feature Request

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

Presently, in order to know if package update exists one has to do scoop status But, scoop status can only report new packages if manifests in git bucket are updated, and so it asks to run scoop update The problem with giving scoop update directly, is that it not only refreshes the buckets, but also proceeds to start updating the packages, which to stop one had to press Ctrl-C with timed watchfulness.

Describe the solution you'd like

scoop bucket update/refresh or scoop update -b for refresh buckets only

Describe alternatives you've considered

Presently, this workaround worked for me. Basically, this feature request is to just automate this.

  1. In powershell, goto the scoop buckets directory cd C:\vol\scoop_01\scoop\buckets\
  2. Do a git pull for each bucket : main, extras, java,
    • cd <bucket>
    • git pull
    • cd ..
      1. Now give scoop status

LOG

PS C:\Windows\system32> scoop status
WARN  Scoop bucket(s) out of date. Run 'scoop update' to get the latest changes.

PS C:\vol\scoop_01\scoop\buckets> cd java
PS C:\vol\scoop_01\scoop\buckets\java> git pull
Updating 0e279617..be84ca70
Fast-forward
 bucket/temurin11-nightly-jdk.json | 10 +++++-----
 bucket/temurin11-nightly-jre.json | 10 +++++-----
 bucket/temurin8-nightly-jdk.json  | 10 +++++-----
 bucket/temurin8-nightly-jre.json  | 10 +++++-----
 4 files changed, 20 insertions(+), 20 deletions(-)
PS C:\vol\scoop_01\scoop\buckets\java> cd ..

PS C:\vol\scoop_01\scoop\buckets> cd .\extras\
PS C:\vol\scoop_01\scoop\buckets\extras> git pull
Updating 3bc8ad31f..abce4eccd
Fast-forward
 bucket/accesser.json                       |  6 ++--
 bucket/adguardian.json                     | 23 +++++++++++++++
 bucket/appflowy.json                       |  6 ++--
 bucket/azd.json                            |  6 ++--
 bucket/azurestorageexplorer.json           | 16 +++++++---
 bucket/beekeeper-studio.json               |  6 ++--
 bucket/bloop.json                          |  6 ++--
 bucket/brave.json                          | 10 +++----
 bucket/buckets.json                        |  6 ++--
 bucket/calibre-normal.json                 |  6 ++--
 bucket/calibre.json                        |  6 ++--
 bucket/camunda-modeler.json                | 10 +++----
 bucket/carapace-bin.json                   | 41 ++++++++++++++++++++++++++
 bucket/ccleaner.json                       |  6 ++--
 bucket/chromium.json                       |  6 ++--
 bucket/civo.json                           |  6 ++--
 bucket/cpu-z.json                          |  2 +-
 bucket/cuetools.json                       |  8 ++---
 bucket/discordchatexporter.json            |  6 ++--
 bucket/dnspyex.json                        | 10 +++----
 bucket/dolphin.json                        |  6 ++--
 bucket/draw.io.json                        | 10 +++----
 bucket/easyrsa.json                        | 12 ++++----
 bucket/eclipse-committers.json             |  6 ++--
 bucket/eclipse-cpp.json                    |  6 ++--
 bucket/eclipse-dsl.json                    |  6 ++--
 bucket/eclipse-embedcpp.json               |  6 ++--
 bucket/eclipse-java.json                   |  6 ++--
 bucket/eclipse-jee.json                    |  6 ++--
 bucket/eclipse-modeling.json               |  6 ++--
 bucket/eclipse-parallel.json               |  6 ++--
 bucket/eclipse-php.json                    |  6 ++--
 bucket/eclipse-platform.json               |  6 ++--
 bucket/eclipse-rcp.json                    |  6 ++--
 bucket/eclipse-scout.json                  |  6 ++--
 bucket/eclipse-sdk.json                    |  6 ++--
 bucket/electerm.json                       |  8 ++---
 bucket/electronmail.json                   |  6 ++--
 bucket/elisa.json                          |  6 ++--
 bucket/fastcopy.json                       |  6 ++--
 bucket/fbflipper.json                      |  6 ++--
 bucket/fclones.json                        |  6 ++--
 bucket/ffmpeg-batch.json                   |  6 ++--
 bucket/filelight.json                      |  6 ++--
 bucket/find-java.json                      |  2 +-
 bucket/firefox-eme-free.json               | 10 +++----
 bucket/fluidsynth.json                     | 30 +++++++++++++++++++
 bucket/flutter.json                        |  6 ++--
 bucket/foobar2000.json                     | 28 ++++++++++++++++--
 bucket/ft2-clone.json                      | 47 ++++++++++++++++++++++++++++++
 bucket/gcloud.json                         | 10 +++----
 bucket/github.json                         |  4 +--
 bucket/gitkraken.json                      | 10 +++----
 bucket/googlechrome.json                   | 10 +++----
 bucket/grafana.json                        |  8 ++---
 bucket/grepwin.json                        | 10 +++----
 bucket/gyroflow.json                       |  6 ++--
 bucket/hydrogen.json                       | 10 +++----
 bucket/hydrus-network.json                 |  6 ++--
 bucket/hysteria.json                       | 10 +++----
 bucket/i2pd.json                           | 10 +++----
 bucket/ida-free.json                       |  6 ++--
 bucket/jackett.json                        |  6 ++--
 bucket/jami.json                           |  6 ++--
 bucket/jcpicker.json                       |  7 -----
 bucket/jpass.json                          |  6 ++--
 bucket/kanata-cmd.json                     | 26 +++++++++++++++++
 bucket/kanata.json                         | 26 +++++++++++++++++
 bucket/kate.json                           |  6 ++--
 bucket/kavita.json                         | 10 +++----
 bucket/koboldcpp.json                      |  6 ++--
 bucket/komac.json                          |  6 ++--
 bucket/lagrange.json                       |  6 ++--
 bucket/lark.json                           |  6 ++--
 bucket/logseq.json                         |  6 ++--
 bucket/magpie.json                         |  6 ++--
 bucket/masscode.json                       |  6 ++--
 bucket/milkytracker.json                   | 39 +++++++++++++++++++++++++
 bucket/mongosh.json                        |  8 ++---
 bucket/mozregression-gui.json              |  6 ++--
 bucket/nefcon.json                         |  6 ++--
 bucket/nekoray.json                        |  6 ++--
 bucket/netron.json                         |  6 ++--
 bucket/nexttrace.json                      | 10 +++----
 bucket/okular.json                         |  6 ++--
 bucket/onlyoffice-desktopeditors.json      | 10 +++----
 bucket/pdf-xchange-editor.json             |  6 ++--
 bucket/pixelorama.json                     | 10 +++----
 bucket/playnite.json                       |  6 ++--
 bucket/postman.json                        |  6 ++--
 bucket/protobuf.json                       | 10 +++----
 bucket/q-dir.json                          |  6 ++--
 bucket/qmplay2.json                        | 41 ++++++++++++++++++++++++++
 bucket/recuva.json                         |  4 +--
 bucket/shotcut.json                        |  6 ++--
 bucket/signal.json                         |  6 ++--
 bucket/siyuan-note.json                    |  6 ++--
 bucket/skaffold.json                       |  6 ++--
 bucket/snappy-driver-installer-origin.json |  6 ++--
 bucket/sorayomi.json                       |  6 ++--
 bucket/soundswitch.json                    |  6 ++--
 bucket/stash.json                          |  6 ++--
 bucket/steamcmd.json                       |  6 ++--
 bucket/sumo.json                           |  2 +-
 bucket/sysinternals.json                   | 15 +++++++---
 bucket/teamspeak3.json                     | 10 +++----
 bucket/teamviewer.json                     |  2 +-
 bucket/termius.json                        |  4 +--
 bucket/thonny.json                         |  6 ++--
 bucket/tlaplus-toolbox.json                |  2 +-
 bucket/tomcat.json                         | 12 ++++----
 bucket/trzsz.json                          | 26 ++++++++++++-----
 bucket/tssh.json                           | 43 +++++++++++++++++++++++++++
 bucket/ungoogled-chromium.json             | 12 ++++----
 bucket/universal-android-debloater.json    | 24 +++++++++++++++
 bucket/virtualhere-client.json             | 36 ++++++++++-------------
 bucket/vivaldi.json                        | 10 +++----
 bucket/vscode.json                         | 14 ++++-----
 bucket/vscodium.json                       | 10 +++----
 bucket/wavebox.json                        |  6 ++--
 bucket/webcamoid.json                      | 10 +++----
 bucket/webex.json                          |  6 ++--
 bucket/whatsapp.json                       | 10 +++----
 bucket/win-vind.json                       | 10 +++----
 bucket/winaero-tweaker.json                |  4 +--
 bucket/windowsdesktop-runtime-lts.json     | 14 ++++-----
 bucket/windowsdesktop-runtime.json         | 14 ++++-----
 bucket/yuescript.json                      | 18 ++++++------
 128 files changed, 821 insertions(+), 445 deletions(-)
 create mode 100644 bucket/adguardian.json
 create mode 100644 bucket/carapace-bin.json
 create mode 100644 bucket/fluidsynth.json
 create mode 100644 bucket/ft2-clone.json
 create mode 100644 bucket/kanata-cmd.json
 create mode 100644 bucket/kanata.json
 create mode 100644 bucket/milkytracker.json
 create mode 100644 bucket/qmplay2.json
 create mode 100644 bucket/tssh.json
 create mode 100644 bucket/universal-android-debloater.json
PS C:\vol\scoop_01\scoop\buckets\extras> cd ..

PS C:\vol\scoop_01\scoop\buckets> cd .\main\
PS C:\vol\scoop_01\scoop\buckets\main> git pull
Updating 5ae94e914..325df93aa
Fast-forward
 bucket/acorn.json               |  6 +++---
 bucket/allure.json              |  8 ++++----
 bucket/ast-grep.json            |  6 +++---
 bucket/aws-amplify.json         |  6 +++---
 bucket/aws.json                 |  6 +++---
 bucket/bicep.json               |  6 +++---
 bucket/bottom.json              | 10 +++++-----
 bucket/boundary.json            | 10 +++++-----
 bucket/camunda-operate.json     |  6 +++---
 bucket/carvel-vendir.json       |  6 +++---
 bucket/ccache.json              | 14 +++++++-------
 bucket/centrifugo.json          |  6 +++---
 bucket/circleci-cli.json        |  8 ++++----
 bucket/cockroachdb.json         |  8 ++++----
 bucket/coder.json               |  6 +++---
 bucket/dapr-cli.json            |  6 +++---
 bucket/dart.json                | 10 +++++-----
 bucket/dependency-check.json    |  6 +++---
 bucket/diun.json                | 10 +++++-----
 bucket/dolt.json                |  6 +++---
 bucket/dotnet-sdk.json          | 14 +++++++-------
 bucket/duckdb.json              | 10 +++++-----
 bucket/dvc.json                 |  6 +++---
 bucket/edgedb.json              |  6 +++---
 bucket/erdtree.json             |  6 +++---
 bucket/fastfetch.json           | 10 +++++-----
 bucket/flow.json                |  6 +++---
 bucket/flyctl.json              | 10 +++++-----
 bucket/fossa.json               |  6 +++---
 bucket/fzf.json                 | 10 +++++-----
 bucket/hcloud.json              | 10 +++++-----
 bucket/helm.json                |  6 +++---
 bucket/jdtls.json               |  6 +++---
 bucket/jdupes.json              | 14 +++++++-------
 bucket/jenkins.json             |  6 +++---
 bucket/kafka.json               |  8 ++++----
 bucket/kapp.json                |  6 +++---
 bucket/kind.json                |  6 +++---
 bucket/ktx-software.json        | 10 +++++-----
 bucket/kubeadm.json             |  6 +++---
 bucket/kubectl.json             | 10 +++++-----
 bucket/kubelet.json             |  6 +++---
 bucket/llvm.json                | 10 +++++-----
 bucket/loft.json                | 10 +++++-----
 bucket/lua-language-server.json | 10 +++++-----
 bucket/luajit.json              | 10 +++++-----
 bucket/migrate.json             | 10 +++++-----
 bucket/mockery.json             |  6 +++---
 bucket/nats-server.json         | 20 ++++++++++----------
 bucket/ncspot.json              |  6 +++---
 bucket/nginx.json               |  8 ++++----
 bucket/nuget.json               |  6 +++---
 bucket/oh-my-posh.json          | 26 +++++++++++++-------------
 bucket/oha.json                 |  6 +++---
 bucket/plex-server.json         |  6 +++---
 bucket/pluto.json               |  6 +++---
 bucket/pnpm.json                |  6 +++---
 bucket/protolint.json           |  6 +++---
 bucket/pueue.json               | 10 +++++-----
 bucket/pulumi.json              |  6 +++---
 bucket/puppet.json              | 10 +++++-----
 bucket/rage.json                |  6 +++---
 bucket/red.json                 |  6 +++---
 bucket/rust-analyzer.json       |  6 +++---
 bucket/sacad.json               | 10 +++++-----
 bucket/saml2aws.json            |  6 +++---
 bucket/sass.json                | 10 +++++-----
 bucket/sbt.json                 |  2 +-
 bucket/scaleway-cli.json        | 10 +++++-----
 bucket/sentry-cli.json          | 10 +++++-----
 bucket/stylua.json              |  6 +++---
 bucket/syft.json                |  6 +++---
 bucket/tectonic.json            |  6 +++---
 bucket/tektoncd-cli.json        |  6 +++---
 bucket/telegraf.json            | 12 ++++++------
 bucket/terraform.json           | 10 +++++-----
 bucket/tesseract.json           | 37 +++++++++++++++----------------------
 bucket/tinygo.json              |  6 +++---
 bucket/trid.json                |  4 ++--
 bucket/trufflehog.json          |  6 +++---
 bucket/vapoursynth.json         | 10 +++++-----
 bucket/vultr.json               | 10 +++++-----
 bucket/wasmtime.json            |  8 ++++----
 bucket/wgcf.json                | 10 +++++-----
 bucket/yara.json                | 10 +++++-----
 bucket/ytt.json                 | 10 +++++-----
 bucket/zeebe.json               |  8 ++++----
 87 files changed, 365 insertions(+), 372 deletions(-)
PS C:\vol\scoop_01\scoop\buckets\main> cd ..

PS C:\Windows\system32> scoop status
Scoop is up to date.

Name      Installed Version Latest Version Missing Dependencies Info
----      ----------------- -------------- -------------------- ----
appflowy  0.1.6             0.2.1
filelight 23.04.1-1374      23.04.2-1378
logseq    0.9.8             0.9.9
recuva    1.53.2095         1.53.2096
HUMORCE commented 1 year ago

scoop update will not updating apps.

hgkamath commented 1 year ago

Thankyou for replying
You mean without any arguments? I thought scoop update updates only the scoop powershell scripts. (rethinking) Perhaps, its not a bad idea to simultaneously update scoop powershell scripts and scoop bucket manifests together, for if there is some change to the structure of manifest-files, the scripts that use them also need to be able to parse them.

Okay, I will try that next time when there is something to update (maybe under a week)
I always invoked scoop update with arguments
scoop update -g <app>
scoop update -g "*"

PS C:\Windows\system32> scoop help update
Usage: scoop update <app> [options]

'scoop update' updates Scoop to the latest version.
'scoop update <app>' installs a new version of that app, if there is one.

You can use '*' in place of <app> to update all apps.

Options:
  -f, --force               Force update even when there isn't a newer version
  -g, --global              Update a globally installed app
  -i, --independent         Don't install dependencies automatically
  -k, --no-cache            Don't use the download cache
  -s, --skip                Skip hash validation (use with caution!)
  -q, --quiet               Hide extraneous messages
  -a, --all                 Update all apps (alternative to '*')

Maybe, one can change the following line in the sub-command help
'scoop update' updates Scoop to the latest version. and instead say
'scoop update' updates Scoop to the latest version as well as refreshes the buckets. or more explicitly
'scoop update' without arguments updates Scoop to the latest version as well as refreshes the buckets.

hgkamath commented 1 year ago

I will close this bug for now, and reopen if required.