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

Unable to install unit via brew on Mac OS #19

Open
craigell opened this issue Nov 10, 2023 · 5 comments
Open

Unable to install unit via brew on Mac OS #19

craigell opened this issue Nov 10, 2023 · 5 comments

Comments

@craigell
Copy link

Unable to install NGINX Unit on Mac OS M1 running Ventura 13.5 with instructions from https://github.com/nginx/unit/#macos

Getting the following output.

`Cloning into '/opt/homebrew/Library/Taps/nginx/homebrew-unit'...
fatal: 'git@githubnginx/homebrew-unit' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: Failure while executing; git clone https://github.com/nginx/homebrew-unit /opt/homebrew/Library/Taps/nginx/homebrew-unit --origin=origin --template= exited with 128.`

@ac000
Copy link
Member

ac000 commented Nov 10, 2023

Unable to install NGINX Unit on Mac OS M1 running Ventura 13.5 with instructions from https://github.com/nginx/unit/#macos

Getting the following output.

`Cloning into '/opt/homebrew/Library/Taps/nginx/homebrew-unit'... fatal: 'git@githubnginx/homebrew-unit' does not appear to be a git repository fatal: Could not read from remote repository.

Hmm, shouldn't that be https://github.com/nginx/homebrew-unit?, anyway this is perhaps better asked in the homebrew-unit repository... transferring...

@ac000 ac000 transferred this issue from nginx/unit Nov 10, 2023
@thresheek
Copy link
Member

Seems to work just fine here. I wonder if brew allows for some debug verbosity when running the commands?

I can see the origin is not garbled on my machine:

k.pavlov@QGCD7XG9R9 ~ $ cd "$(brew --repository nginx/unit)"
k.pavlov@QGCD7XG9R9 Taps/nginx/homebrew-unit $ fgrep nginx .git/config
	url = https://github.com/nginx/homebrew-unit

@arbourd
Copy link
Member

arbourd commented Jan 8, 2024

Seems the issue is based around git@githubnginx/homebrew-unit. This should be [email protected]:nginx/homebrew-unit.git

@craigell are you using a https to ssh alias? I'm not sure how the built-in git ones would remove the .com, but looks like your local git has decided not to use https.

@ac000
Copy link
Member

ac000 commented Jan 8, 2024

Keep in mind that [email protected]:nginx/homebrew-unit.git will only work if you have a matching ssh key on GH...

@thresheek
Copy link
Member

Hi @craigell, have you been able to get to the bottom of the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants