Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formula_installer: fix postinstall using incorrect formula file #15561

Merged
merged 1 commit into from Jun 19, 2023

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Jun 19, 2023

In certain cases the wrong, resolved file path is used in the postinstall stage. Confusingly, when this happened postinstall would actually just be skipped silently without any warnings unless you had --debug so the issue was easy to miss and could have been an issue for some time.

The build stage uses specified_path so the fix here is to be consistent with the rest of FormulaInstaller and do the same with postinstall.

Fixes Homebrew/homebrew-core#130672.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks again @Bo98!

@MikeMcQuaid MikeMcQuaid merged commit 7993085 into Homebrew:master Jun 19, 2023
24 checks passed
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postinstall step fails for helix when installed at HEAD
2 participants