This is an automated email from the ASF dual-hosted git repository.
cederom pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 29c5ae62ad3 ci/platforms/darwin.sh: fix genromfs installation
29c5ae62ad3 is described below
commit 29c5ae62ad33577f20fe4ab4c5e586728359dacb
Author: simbit18 <[email protected]>
AuthorDate: Sun Jul 12 14:46:51 2026 +0200
ci/platforms/darwin.sh: fix genromfs installation
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 <[email protected]>
---
tools/ci/platforms/darwin.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tools/ci/platforms/darwin.sh b/tools/ci/platforms/darwin.sh
index 85d3289ccbb..41846e19890 100755
--- a/tools/ci/platforms/darwin.sh
+++ b/tools/ci/platforms/darwin.sh
@@ -188,6 +188,15 @@ elf_toolchain() {
gen_romfs() {
if ! type genromfs > /dev/null 2>&1; then
brew tap PX4/px4
+
+ # 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.
+ if brew trust --help &> /dev/null; then
+ brew trust PX4/px4
+ fi
+
brew install genromfs
fi
}