How to 'build-from-source' from a specific checkout, not HEAD? #1230
Unanswered
edrozenberg
asked this question in
Tap maintenance and brew development
Replies: 2 comments 10 replies
-
You can specify a git url + revision as the URL and rebuild it normally. Normally we also use a tag in that structure but it's not required. |
Beta Was this translation helpful? Give feedback.
6 replies
-
This seems like a really painful way of doing it, as there are a few hundred commits in between release tags. I suggest building outside of |
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
-
I'm trying to git bisect midnight-commander (
mc
). The4.8.25
release works fine on Mac,4.8.26
is partially broken (does not launch in any dir other than homedir). Want to figure out which commit broke it so I have some chance of getting the mc project to look at it.I tried but cannot figure out any way to
brew install --build-from-source
from a specific git tag/checkout, and not--HEAD
.For ex. I'd want to force
brew
to build from a directory I create usinggit clone --depth 1 <repo_url>; cd <git dir>; git reset --hard <COMMIT-SHA-ID>
It seems currently there's no way to tell
brew
to just build the source from where it tell it, instead of having it do its own HEAD checkout.Beta Was this translation helpful? Give feedback.
All reactions