gitfetch icon indicating copy to clipboard operation
gitfetch copied to clipboard

Issue with installing via homebrew

Open RoccoMathijn opened this issue 1 year ago • 24 comments

Hey congrats on the cool project!

Trying to install via homebrew but having some issues. Is there supposed to be a Matars/homebrew-gitfetch repo? I can't find it. Is it a private repo perhaps?

RoccoMathijn avatar Oct 21 '25 14:10 RoccoMathijn

I have already worked on a solution for this issue. I'll create a pull request shortly.

joeliscoding avatar Oct 21 '25 14:10 joeliscoding

Thanks for PR and shedding light on this

@joeliscoding I have a seperate branch that handles my packaging logic

Should i instead have the Formula file in the same repo?

for now i will use your fomula file on the other repo for packaging- but lmk if i should move it here.

Matars avatar Oct 21 '25 15:10 Matars

Sorry, just read your PR

Thank you so much!

Matars avatar Oct 21 '25 15:10 Matars

Why is the issue reopened? is there something broken

Zeviraty avatar Oct 21 '25 16:10 Zeviraty

@Zeviraty I have just pushed the new formula file, still making sure its working, so far so good - closing soon

Matars avatar Oct 21 '25 16:10 Matars

Happy to help, I love the project.

@Matars I didn't know about the seperate branch. The Formula file basically just has to be in any public repo, don't even have to be on GitHub.

If you want the main repo to be less cluttered, you could also create a seperate repo containing just the Formula folder and the formula itself.

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

@joeliscoding

shouldent the README be only

brew tap matars/homebrew-gitfetch
brew install gitfetch
```

Matars avatar Oct 21 '25 16:10 Matars

Works well for me with

brew tap matars/homebrew-gitfetch brew install gitfetch

Leaving that in the readme as I assume it would work for the rest

Hopefully its working only for me since I have ssh keys to that repo - keeping this issue open if someone can confirm

Matars avatar Oct 21 '25 16:10 Matars

works only for you, requires me to authenticate and i dont have access

Zeviraty avatar Oct 21 '25 16:10 Zeviraty

@joeliscoding

shouldent the README be only

brew tap matars/homebrew-gitfetch brew install gitfetch

I don't think this works, because as far as I understand, Homebrew just searches for a GitHub repo with homebrew- added to it. So it would probably look for https://github.com/matars/homebrew-homebrew-gitfetch if you do it like that.

It's explained here if you want to read yourself.

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

This is the Output

$ brew tap matars/homebrew-gitfetch

==> Tapping matars/gitfetch
Cloning into '/opt/homebrew/Library/Taps/matars/homebrew-gitfetch'...
remote: Repository not found.
fatal: repository 'https://github.com/matars/homebrew-gitfetch/' not found
Error: Failure while executing; `git clone https://github.com/matars/homebrew-gitfetch /opt/homebrew/Library/Taps/matars/homebrew-gitfetch --origin=origin --template= --config core.fsmonitor=false` exited with 128.

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

What do you think about creating a repo on your profile called "homebrew-gitfetch"? Then tapping will work by how you intended it to be originally with brew tap matars/gitfetch.

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

@joeliscoding I already have one however its private repo, I can just make it public?

Matars avatar Oct 21 '25 16:10 Matars

brew tap matars/gitfetch brew install gitfetch

seems to work for me

Matars avatar Oct 21 '25 16:10 Matars

Yes, making it public would be a solution so it can work for everyone

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

@joeliscoding thank you for the help.

Repo is public now https://github.com/Matars/homebrew-gitfetch

hope it works 🤞

Matars avatar Oct 21 '25 16:10 Matars

works perfectly fine on my end :)

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

@RoccoMathijn @Zeviraty @joeliscoding thanks for helping me close out this issue <3

Matars avatar Oct 21 '25 16:10 Matars

Anytime :)

If you want to, you can also try adding the formula to the homebrew-core repo in the future. This would enable installation without needing to tap first.

The only problem would be that making changes to the Ruby script itself would be more effort since you would have to create a pull request every time. (You have to update the Ruby script with every new release)

If you still want to go for it, let me know if you need help. Alternatively, I can try to get the script merged into the core myself, if you'd like.

joeliscoding avatar Oct 21 '25 16:10 joeliscoding

You should also be able to delete the Formula directory from the main repo now :)

joeliscoding avatar Oct 21 '25 16:10 joeliscoding