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

More resilient brew formulae name handling #9665

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

UnknownPlatypus
Copy link
Contributor

@UnknownPlatypus UnknownPlatypus commented Feb 1, 2025

SUMMARY

Fixes #9641, Review by commit is advised


There are actually 2 issues:

One with the uppercase letters.
Apparently, brew normalize everything to lowercase. For ex:

$ brew info --json=v2 TheZoraiz/ascii-image-converter/ascii-image-converter

{
  "formulae": [
    {
      "name": "ascii-image-converter",
      "full_name": "thezoraiz/ascii-image-converter/ascii-image-converter",
      "tap": "thezoraiz/ascii-image-converter",
      ...

The other is with the handling of tap with no equivalent in brew registry
ie you cannot do brew install ascii-image-converter if you didn't tap thezoraiz/ascii-image-converter before.

We previously missed this case in tests because we used hashicorp/tap/terraform but there is a regular terraform package too

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

homebrew

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug integration tests/integration module module needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR plugins plugin (any type) tests tests and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Feb 1, 2025
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-10 Automatically create a backport for the stable-10 branch labels Feb 1, 2025
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

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

hi @UnknownPlatypus thanks for the PR!

I spotted a typo and left a question on the tests, other than that it LGTM

@felixfontein
Copy link
Collaborator

I'll merge somewhen tomorrow if nobody objects.

Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-10 Automatically create a backport for the stable-10 branch bug This issue/PR relates to a bug check-before-release PR will be looked at again shortly before release and merged if possible. integration tests/integration module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Homebrew: "KeyError: 'pop from an empty set'" for tap
4 participants