sdkman / homebrew-tap

Apache License 2.0
38 stars 5 forks source link

sdk selfupdate Invalid Command #4

Closed piyush-ramavat closed 1 year ago

piyush-ramavat commented 1 year ago

Hello getting errors on SelfUpdate and Version commands on MacOS (Macbook pro M1 Max - MacOS Ventura 13.4.1)

~ % sdk selfupdate

Invalid command: selfupdate

~ sdk version    
cat: /opt/homebrew/opt/sdkman-cli/libexec/var/version: No such file or directory

SDKMAN

Installed via Homebrew

~ % brew tap sdkman/tap
==> Tapping sdkman/tap
Cloning into '/opt/homebrew/Library/Taps/sdkman/homebrew-tap'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 55 (delta 16), reused 39 (delta 0), pack-reused 0
Receiving objects: 100% (55/55), 10.36 KiB | 816.00 KiB/s, done.
Resolving deltas: 100% (16/16), done.
Tapped 2 formulae (15 files, 29.8KB).

~ % brew install sdkman-cli
==> Downloading https://formulae.brew.sh/api/formula.jws.json

==> Downloading https://formulae.brew.sh/api/cask.jws.json

==> Fetching sdkman/tap/sdkman-cli
==> Downloading https://github.com/sdkman/sdkman-cli/releases/download/5.18.1/sdkman-cli-5.18.1.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/5573275/f57ee1b9-53b2-4722-b3d
######################################################################################################################### 100.0%
==> Installing sdkman-cli from sdkman/tap
==> curl -s https://api.sdkman.io/2/candidates/all -o /opt/homebrew/Cellar/sdkman-cli/5.18.1/libexec/var/candidates
🍺  /opt/homebrew/Cellar/sdkman-cli/5.18.1: 28 files, 65.7KB, built in 3 seconds
==> Running `brew cleanup sdkman-cli`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

Any work around to get these resolved? Thanks

helpermethod commented 1 year ago

Hi @piyush-ramavat!

With regards to selfupdate:

This is by design, as Homebrew managed software should only ever be updated by Homebrew itself.

The version command is currently broken, as the formula needs to be updated, which I didn't have time for yet.