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

formulary: fix error with absolute alias paths #13888

Merged
merged 1 commit into from Sep 19, 2022

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Sep 19, 2022

Fixes #13883.

This broke in e8f2d8f in a non-obvious way. CoreTap.instance.alias_dir/ref where ref is an absolute path will just return ref itself, but after that commit meant it was lowercased which breaks on case-sensitive systems.

I've tweaked the code to explicitly check if we are using an absolute path ref to make the code not rely on weird side effects like that.

@Bo98 Bo98 added the critical Critical change which should be shipped as soon as possible. label Sep 19, 2022
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@Bo98 Bo98 merged commit d56d8a9 into Homebrew:master Sep 19, 2022
@Bo98 Bo98 deleted the formulary-absolute-alias branch September 19, 2022 02:29
@carlocab
Copy link
Member

Nice catch; thanks! I was looking at e8f2d8f, but couldn't work out what could be causing the problem.

@MikeMcQuaid
Copy link
Member

Nice catch @Bo98!

@github-actions github-actions bot added the outdated PR was locked due to age label Oct 20, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: No available formula with the name ".../homebrew-core/Aliases/python"
4 participants