From 473246e5d2af0811ce387008b69fe087b5151e78 Mon Sep 17 00:00:00 2001 From: npc0-hue Date: Sat, 22 Aug 2026 00:05:49 +0800 Subject: [PATCH] fix: ignore tar pax metadata in run builds --- platform/service/distribution_builder.go | 2 +- platform/service/distribution_builder_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/service/distribution_builder.go b/platform/service/distribution_builder.go index 9744017..04d0448 100644 --- a/platform/service/distribution_builder.go +++ b/platform/service/distribution_builder.go @@ -483,7 +483,7 @@ if [ "$COMPONENT_KIND" = "run" ]; then progress 24 'git_sync: preparing run source snapshot' rm -rf /workspace/build/run-source mkdir -p /workspace/build/run-source - cp -R /workspace/source/. /workspace/build/run-source/ + find /workspace/source -mindepth 1 -maxdepth 1 ! -name pax_global_header -exec cp -R {} /workspace/build/run-source/ \; progress 34 'env_check: injecting run build metadata' seed_b64="$(base64 /workspace/input/workspace-seed.json | tr -d '\n')" cat > /workspace/build/run-source/config/workspace_seed_generated.go <= bytes.Index(script, []byte(ordered[1])) { t.Fatalf("Run build script must prepare source before injecting config and compiling: %q before %q", ordered[0], ordered[1]) }