Setting branch and revision on a url in a resource #2595
Unanswered
nwhetsell
asked this question in
Writing Formulae/Casks
Replies: 1 comment 4 replies
-
is different from
think of it this way, you could download a tarball of pkg/formula ie. llvm for example that will be set to a specific revision, but you'd still need to build that tarball from source ie. the so |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the
csound
formula cannot be built from source:This is because the
csound
formula uses another Git repository at a particular commit as a resource, but this commit is no longer on the default branch (“develop”, in this case):https://github.com/Homebrew/homebrew-core/blob/7734cc10c83cfff1621037fd71e127b7bbe2fb1c/Formula/csound.rb#L59-L62
Changing the resource block to—
—enables the formula to build, but incorrectly. What seems to be happening is that Homebrew checks out the specified branch, but doesn’t move to the specified revision:
That last line is unexpected; I’d expect HEAD to be set, at some point, to
63b7846
(the revision in the resource block).Is there a way to specify both a branch and a revision for a Git repository in a resource block?
Beta Was this translation helpful? Give feedback.
All reactions