mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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.
50161b1f09/Tools/setup/macos.sh (L54-L64)
Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
parent
31caf8497b
commit
29c5ae62ad
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue