brew: Formula test failing because build dependency cannot be found

Last week I was having issue where the brew audit step would fail when using core dependencies, with messages like: Error: No available formula with the name "openjdk".

This issue seems to be resolved (I think it was Homebrew/actions#333), and the general test workflow seems to again work on my tap. However, I just tried upgrading one of my formulae, and I’m running into an issue where after the building and installation the brew test step failed because with the message Error: No available formula with the name "cmake"..

I assume that this is still because it parses the formula and does not know about this dependency, since in the test step CMake is not used.

A full build log with the debug enabled can be found here: https://github.com/Dekker1/homebrew-minizinc/actions/runs/4277368900/jobs/7446201245

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 16 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@kke, you need to publish your .github/workflows/publish.yml changes to the main branch (i.e. commit directly or via another PR) before adding the pr-pull tag.

The reason behind this: the workflow is triggered by the pull_request_target event. It runs in the context of the PR target branch (main in your case). See GitHub Docs for more information.

If you still have issues, please use the discussion forum.

@kke, your problem looks like Homebrew/discussions#4546. But it’s hard to say without any debugging information. However, if it is, then you should be fixed by #15500. In any case, your problem is unlikely to be related to this issue (#15049).

As a workaround you can add something like

env:
  HOMEBREW_NO_INSTALL_FROM_API: 1

to your workflow.

This should be fixed so that it works without this, though.

CC @Bo98 who mentioned something like this.