Trying to make local changes in HEAD repo and have brew pick them up #713
-
I am trying to apply a patch over a HEAD upstream source. If I commit the change to a cached repository in
, where XYZ123 is the origin head. The documentation mentions that there is a So how do I make local changes to a git repo and have brew pick them up? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
There are a few things you can do, I think. The preferable way to handle something like this as a more long-term solution is probably to add a head do
url "..." # HEAD url
patch do
url "..." # url of the patch file (this can be a filename using `file:///Users/...`)
sha256 "..." # of the file specified above
end
end A good way to generate the patch file is to run That's really what the Now, I believe another way is to manually edit the Hope that's what you're looking for. |
Beta Was this translation helpful? Give feedback.
There are a few things you can do, I think. The preferable way to handle something like this as a more long-term solution is probably to add a
patch
block in thehead
block. Might look something like this:A good way to generate the patch file is to run
brew install --interactive --git
. You can then make the changes and usegit diff > /some/patch/file
to create the patch file to be used in thepatch
block.That's really what the
--git
option is for. We don't really have a built-in way to make on-the-fly…