From 571b642670cc780c145458d6fcf3332e60ca4537 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 28 Jun 2022 05:40:58 -0700 Subject: [PATCH] devops: fix firefox-beta build on Ubuntu 20.04 & 22.04 (#15175) devops: fix firefox-beta build References #15174 --- browser_patches/firefox-beta/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/browser_patches/firefox-beta/build.sh b/browser_patches/firefox-beta/build.sh index 3a09b73ad9..8c90d0b5ca 100755 --- a/browser_patches/firefox-beta/build.sh +++ b/browser_patches/firefox-beta/build.sh @@ -104,6 +104,15 @@ if [[ $1 == "--full" || $2 == "--full" || $1 == "--bootstrap" ]]; then fi fi +# Remove the cbindgen from mozbuild to rely on the one we install manually. +# See https://github.com/microsoft/playwright/issues/15174 +if is_win; then + rm -rf "${USERPROFILE}\\.mozbuild\\cbindgen" +else + rm -rf "${HOME}/.mozbuild/cbindgen" +fi + + if [[ $1 == "--juggler" ]]; then ./mach build faster elif [[ $1 == "--bootstrap" ]]; then