From b0c726a5569cee87d2d1653fc9c6c85fba8ebd4b Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Thu, 5 Nov 2026 13:38:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E6=A0=A1=E9=AA=8C=E5=99=A8=E7=9A=84?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=94=B9=E8=B5=B0=20stderr=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=B7=B7=E8=BF=9B=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E7=9A=84=E5=8C=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI 用 $(scripts/build-package.sh ...) 取包路径。verify-package.sh 调用 LitheOfficialPluginVerifier 和 LithePluginPackageSigner --verify 时,它们的结果打印到了 stdout,混进了取到的路径,archive-package.sh 因此报 --package must name a dev.lithe.plugin.java-support package directory。 --- scripts/verify-package.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/verify-package.sh b/scripts/verify-package.sh index 6ff549a..e12ffd7 100755 --- a/scripts/verify-package.sh +++ b/scripts/verify-package.sh @@ -13,6 +13,9 @@ set -euo pipefail # launch it). # With --host-tools it also runs Lithe's official package verifier and, when # the package is signed, checks the publisher signature. +# Everything it reports goes to stderr, so a caller that captures stdout (as +# scripts/build-package.sh's callers capture the package path) gets nothing +# from it. ROOT_DIR="${0:A:h:h}" PLUGIN_ID="dev.lithe.plugin.java-support" @@ -97,9 +100,9 @@ if [[ "$REQUIRE_SIGNATURE" == true && ! -f "$signature" ]]; then fail "the package is not publisher-signed" fi if [[ -n "$HOST_TOOLS" ]]; then - "$HOST_TOOLS/LitheOfficialPluginVerifier" "$PACKAGE" + "$HOST_TOOLS/LitheOfficialPluginVerifier" "$PACKAGE" >&2 if [[ -f "$signature" ]]; then - "$HOST_TOOLS/LithePluginPackageSigner" --verify "$PACKAGE" + "$HOST_TOOLS/LithePluginPackageSigner" --verify "$PACKAGE" >&2 fi fi print -u2 -- "Verified Java Support package $PACKAGE ($ARCH)"