nats-io / natscli

The NATS Command Line Interface
Apache License 2.0
453 stars 94 forks source link

Failed to resolve requested version when downloading nats-cli binary #1087

Closed jamm3e3333 closed 3 weeks ago

jamm3e3333 commented 3 weeks ago

Observed behavior

I'm trying to download nats-cli binary like this curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh as one of the recommended methods of downloading the nats-cli, but everytime I try it says:

Failed to resolve requested version

I tried even for different versions v0.1.4 (latest), v0.1.3.

Expected behavior

Downloading the nats-cli binary

Server and client version

I don't think in this case the nats server version is relevant, as I don't have a problem with executing the nats-cli for the nats-server

Host environment

mac OS M2 arm64, but mainly I wanna run the nats-cli in a docker-container from this image:

FROM bash:latest
...

Steps to reproduce

running bash docker container with downloading the nast-cli binary

FROM bash:latest

RUN apk add --no-cache curl

CMD ["setup-nats.sh"]

setup-nats.sh

#!/usr/bin/env bash
set -euo pipefail

curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh && mv nats /usr/local/bin/

nats --version
ripienaar commented 3 weeks ago

Hmm, not sure who owns the binaries service maybe @wallyqs or @philpennock has some ideas?

wallyqs commented 3 weeks ago

I think this should be resolved now.

jamm3e3333 commented 3 weeks ago

will try, thanks

jamm3e3333 commented 3 weeks ago

It works, thank you @wallyqs may I know what was the issue?