How to create a tap...? #491
Replies: 3 comments 18 replies
-
It's the only official "path to making this work". Have you read https://docs.brew.sh/Taps? It's the very first link after the title, and explains what a tap is, its naming conventions and assumptions, and other useful info. If you want to see an actual tap in action, look no further than the Homebrew core tap: |
Beta Was this translation helpful? Give feedback.
-
Put your formula Supposing you’ve done this for formula
or with
|
Beta Was this translation helpful? Give feedback.
-
I think the confusion stems from the fact that If you must have your formula files in the same repo (not recommended), you want to run Then, you can install the formula with However, as Adrian and Sean mentioned, this isn't the recommended/supported way to host a tap, so it's possible that you'll run into some issues. A better option is to have a separate repo called More information about creating (which is when you use |
Beta Was this translation helpful? Give feedback.
-
Alright, I'm thoroughly confused about the documentation and the process. Note that I do not own a mac, and that this process is mainly to help some niche users. My testing and experimenting has been done through github actions so far.
I've created two formulae in my repository, here:
https://github.com/grumpycoders/pcsx-redux/tree/main/tools/macos-mips
If I do a
brew install
of the files locally, it works fine:https://github.com/grumpycoders/pcsx-redux/blob/main/.github/workflows/toolchain.yml#L23-L26
But doing a
brew install
on the URL doesn't work, with the following error:I tried following the documentation from https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap using a Linux command line and brew installed, but I'm not sure it's even the proper path to making this work.
Since I already have a git repository, I did
brew tap-new --no-git foo/bar
to see what would happen, but none of my local files got changed, or created, and it went and created files in$(LINUXBREW)/Homebrew/Library/Taps/foo/homebrew-bar/
that have no seemingly relevant files created in it that'd need to be committed to my repository to make the error go away.At this point, I have no clue whatsoever what's involved in making this work properly for mac users.
Beta Was this translation helpful? Give feedback.
All reactions