Skip to content

Trying to make local changes in HEAD repo and have brew pick them up #713

Discussion options

You must be logged in to vote

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 the head block. Might look something like this:

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 brew install --interactive --git. You can then make the changes and use git diff > /some/patch/file to create the patch file to be used in the patch block.

That's really what the --git option is for. We don't really have a built-in way to make on-the-fly…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@wrobelda
Comment options

@wrobelda
Comment options

@carlocab
Comment options

@wrobelda
Comment options

@carlocab
Comment options

Answer selected by wrobelda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants