From: Carlo Arenas Date: Fri, 22 Apr 2022 11:15:51 GMT Subject: Re: [PATCH v2 2/3] CI: don't care about SHA256 mismatch on upstream "perforce" package Message-ID: In-Reply-To: > diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh > index 82fa87f97af..cab6e04a358 100755 > --- a/ci/install-dependencies.sh > +++ b/ci/install-dependencies.sh > @@ -37,7 +37,14 @@ macos-latest) > test -z "$BREW_INSTALL_PACKAGES" || > brew install $BREW_INSTALL_PACKAGES > brew link --force gettext > - brew install perforce > + brew install perforce || { > + echo Installing perforce failed, assuming and working around SHA256 mismatch >&2 && > + > + path=$(brew edit --print-path perforce) && > + sed 's/\(sha256.\).*/\1:no_check/' <"$path" >"$path".tmp && > + mv "$path".tmp "$path" && > + brew install perforce brew install $path seems to be a safer way to ensure that brew will use the locally modified cask Carlo