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]) }