Skip to content

brew audit throwing undefined method 'path' error #2531

Discussion options

You must be logged in to vote

brew audit doesn't work on arbitrary formula files. It needs to be installed in a tap to work. For example:

❯ poet -f pytest > "$(brew --repository homebrew/core)/Formula/pytest.rb"
❯ brew audit --strict pytest
pytest:
  * Dependency 'python3' is an alias; use the canonical name 'python@3.9'.
Error: 1 problem in 1 formula detected

Incidentally, your expected output is actually not expected at all. Those errors should never show up for formulae.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lockefox
Comment options

@carlocab
Comment options

Answer selected by lockefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants