Apparently it is illegal to use stderr in this project. (#162294)

Unblocks https://github.com/flutter/flutter/issues/162201.
This commit is contained in:
Matan Lurey 2025-01-27 18:51:37 -08:00 committed by GitHub
parent 0b33d7b48d
commit 281efca413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -14,6 +14,8 @@
#
# -------------------------------------------------------------------------- #
$ErrorActionPreference = "Stop"
$progName = Split-Path -parent $MyInvocation.MyCommand.Definition
$flutterRoot = (Get-Item $progName).parent.parent.FullName
@ -29,11 +31,8 @@ $flutterRoot = (Get-Item $progName).parent.parent.FullName
# functioning. Please file an issue if you have workflow needs.
if (![string]::IsNullOrEmpty($env:FLUTTER_PREBUILT_ENGINE_VERSION)) {
$engineVersion = $env:FLUTTER_PREBUILT_ENGINE_VERSION
Write-Error "[Unstable] Override: Setting engine SHA to $engineVersion"
}
$ErrorActionPreference = "Stop"
# Test for fusion repository
if ([string]::IsNullOrEmpty($engineVersion) -and (Test-Path "$flutterRoot\DEPS" -PathType Leaf) -and (Test-Path "$flutterRoot\engine\src\.gn" -PathType Leaf)) {
# Calculate the engine hash from tracked git files.

View File

@ -29,7 +29,6 @@ set -e
# functioning. Please file an issue if you have workflow needs.
if [ -n "${FLUTTER_PREBUILT_ENGINE_VERSION}" ]; then
ENGINE_VERSION="${FLUTTER_PREBUILT_ENGINE_VERSION}"
echo "[Unstable] Override: Setting engine SHA to $ENGINE_VERSION" 1>&2
fi
FLUTTER_ROOT="$(dirname "$(dirname "$(dirname "${BASH_SOURCE[0]}")")")"