Skip to content

ci/platforms/darwin.sh: fix genromfs installation#19414

Open
simbit18 wants to merge 1 commit into
apache:masterfrom
simbit18:simbit18-macos
Open

ci/platforms/darwin.sh: fix genromfs installation#19414
simbit18 wants to merge 1 commit into
apache:masterfrom
simbit18:simbit18-macos

Conversation

@simbit18

@simbit18 simbit18 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

fix

Error: Refusing to load formula px4/px4/genromfs from untrusted tap px4/px4. 
Run `brew trust --formula px4/px4/genromfs` or `brew trust px4/px4` to trust it. Error: Process completed with exit code 1.

https://github.com/NuttX/nuttx/actions/runs/27758491940/job/82126706912

Homebrew 6.0+ refuses to load formulae from third-party taps unless they are explicitly trusted ("Refusing to load formula ... from untrusted tap"). Trust each tap non-interactively before installing from it. Without this, brew install aborts before pouring any package (including ccache). brew trust only exists on Homebrew 6.0+.

https://github.com/PX4/PX4-Autopilot/blob/50161b1f09c31beade9a0bb5b4057276e9eac4ee/Tools/setup/macos.sh#L54-L64

Impact

Impact on user: No changes to user-facing functionality
Impact on build: Build process remains the same

Testing

GitHub

Nuttx repository: simbit18/nuttx
Nuttx branch: simbit18-macos
Apps repository: apache/nuttx-apps
Apps branch: master
Architecture: all
Host platform: macos

==> Would install 1 formula:
genromfs
==> Fetching downloads for: genromfs
✔︎ Formula genromfs (0.5.2)
✔︎ Formula genromfs (0.5.2)
==> Installing genromfs from px4/px4
==> Patching
==> make
==> make PREFIX=/usr/local/Cellar/genromfs/0.5.2 install-bin
🍺  /usr/local/Cellar/genromfs/0.5.2: 7 files, 50.2KB, built in 5 seconds

https://github.com/simbit18/manual-nuttx-ci/actions/runs/29193425477/job/86652110177

fix
Error: Refusing to load formula px4/px4/genromfs from untrusted tap px4/px4.
Run `brew trust --formula px4/px4/genromfs` or `brew trust px4/px4` to trust it.
Error: Process completed with exit code 1.

Homebrew 6.0+ refuses to load formulae from third-party taps unless they
are explicitly trusted ("Refusing to load formula ... from untrusted tap").
Trust each tap non-interactively before installing from it. Without this,
`brew install` aborts before pouring any package (including ccache).
`brew trust` only exists on Homebrew 6.0+; guard it so older versions,
which don't gate untrusted taps, skip it silently.

https://github.com/PX4/PX4-Autopilot/blob/50161b1f09c31beade9a0bb5b4057276e9eac4ee/Tools/setup/macos.sh#L54-L64

Signed-off-by: simbit18 <simbit18@gmail.com>
@github-actions github-actions Bot added Area: CI Size: XS The size of the change in this PR is very small labels Jul 12, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: CI Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants