Issue with installing via homebrew
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?
I have already worked on a solution for this issue. I'll create a pull request shortly.
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.
Sorry, just read your PR
Thank you so much!
Why is the issue reopened? is there something broken
@Zeviraty I have just pushed the new formula file, still making sure its working, so far so good - closing soon
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
shouldent the README be only
brew tap matars/homebrew-gitfetch
brew install gitfetch
```
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
works only for you, requires me to authenticate and i dont have access
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.
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.
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 I already have one however its private repo, I can just make it public?
brew tap matars/gitfetch brew install gitfetch
seems to work for me
Yes, making it public would be a solution so it can work for everyone
@joeliscoding thank you for the help.
Repo is public now https://github.com/Matars/homebrew-gitfetch
hope it works 🤞
works perfectly fine on my end :)
@RoccoMathijn @Zeviraty @joeliscoding thanks for helping me close out this issue <3
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.
You should also be able to delete the Formula directory from the main repo now :)