nats-io / homebrew-nats-tools

Repository hosting homebrew taps for nats-io tools
Apache License 2.0
5 stars 5 forks source link

Error running brew tap nats-io/nats-tools in Mac #3

Open marymakau5 opened 3 years ago

marymakau5 commented 3 years ago

Getting error when running brew tap nats-io/nats-tools in Mac. What's the solution? image

aricart commented 3 years ago

Not sure what tool you are trying to tap on, but if you were doing nsc you simply do:

brew tap nats-io/nats-tools
brew install nats-io/nats-tools/nsc

# to uninstall:
brew uninstall nats-io/nats-tools/nsc
brew untap nats-io/nats-tools

If nats cli, you can replace nsc with nats on the install and uninstall commands. Just verified that these steps worked for me:

> brew tap nats-io/nats-tools
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from a235b3800 to afd3567ce.
Updated 4 taps (homebrew/cask-versions, homebrew/core, homebrew/cask and goreleaser/tap).
==> New Formulae
clusterctl     djl-serving    influxdb@1     linux-pam      orgalorg       pandoc-plot    timg           tz
==> Updated Formulae
Updated 216 formulae.
==> Deleted Formulae
cluster-api
==> New Casks
alipay-development-assistant   dash5                          finisher-neo                   microsoft-remote-desktop
betelguese                     drovio                         finisher-voodoo                nure
brooklite                      elpki                          free42-binary                  simtoolkitpro
coinomi-wallet                 finisher-micro                 free42-decimal                 xbar
==> Updated Casks
Updated 170 casks.
==> Deleted Casks
adobe-dng-converter                      psequel                                  use-engine
pibakery                                 raven                                    veonim

==> Homebrew was updated to version 3.0.9
The changelog can be found at:
  https://github.com/Homebrew/brew/releases/tag/3.0.9
==> Tapping nats-io/nats-tools
Cloning into '/usr/local/Homebrew/Library/Taps/nats-io/homebrew-nats-tools'...
remote: Enumerating objects: 95, done.
remote: Counting objects: 100% (95/95), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 95 (delta 21), reused 8 (delta 1), pack-reused 0
Receiving objects: 100% (95/95), 17.26 KiB | 5.75 MiB/s, done.
Resolving deltas: 100% (21/21), done.
Tapped 2 formulae (29 files, 57.5KB).

> brew install nats-io/nats-tools/nsc
==> Installing nsc from nats-io/nats-tools
==> Downloading https://github.com/nats-io/nsc/releases/download/2.2.2/nsc-darwin-amd64.zip
==> Downloading from https://github-releases.githubusercontent.com/156566094/ffc6fc80-8be3-11eb-9b86-65432ee4cbd1?X-Amz-Alg
######################################################################## 100.0%
🍺  /usr/local/Cellar/nsc/2.2.2: 3 files, 17.1MB, built in 6 seconds
aricart commented 3 years ago

also tried with the nats cli and it worked for me. You may need to perform the uninstall steps.

marymakau5 commented 3 years ago

I want to install nats administration tools ; nats cli on Mac Mini

aricart commented 3 years ago
brew tap nats-io/nats-tools
brew install nats-io/nats-tools/nats

should do it.

The homebrew page says: run brew update twice and then run brew doctor - that may help in finding the issue.

bkono commented 3 years ago

Threw in a quick PR to fix this issue. It is present on M1's because unlike the nats.rb entry, nsc.rb has an intel? check, which will lead to failure to be able to tap in the first place.

Apologies for the double PR, let cli tooling push it, and missed the conflict with the formula update.