From 80f3206a6e069901b15dd60ada2cbca64d2bf6a2 Mon Sep 17 00:00:00 2001 From: Yogthos Date: Thu, 2 Jul 2026 14:59:51 -0400 Subject: [PATCH] Fix release.yml: literal newlines inside printf broke the YAML The Windows PATH step embedded real newlines in its printf strings, which broke the block scalar and invalidated the whole workflow file (the push run failed at parse; workflow_dispatch refused). The wrappers are plain echo pairs now. --- .github/workflows/release.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ecfd66..181c251 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,18 +122,13 @@ jobs: - name: Put chez on PATH (Windows) if: runner.os == 'Windows' run: | - printf '#!/bin/sh -exec "%s/chez-install/bin/scheme" "$@" -' "$GITHUB_WORKSPACE" > "$GITHUB_WORKSPACE/chez-install/bin/chez" - chmod +x "$GITHUB_WORKSPACE/chez-install/bin/chez" - echo "$GITHUB_WORKSPACE/chez-install/bin" >> "$GITHUB_PATH" + bindir="$GITHUB_WORKSPACE/chez-install/bin" + { echo '#!/bin/sh'; echo "exec \"$bindir/scheme\" \"\$@\""; } > "$bindir/chez" + chmod +x "$bindir/chez" + echo "$bindir" >> "$GITHUB_PATH" # cc is the build's compiler name; alias it to mingw gcc - printf '#!/bin/sh -exec gcc "$@" -' > /usr/local/bin/cc || printf '#!/bin/sh -exec gcc "$@" -' > "$GITHUB_WORKSPACE/chez-install/bin/cc" - chmod +x /usr/local/bin/cc 2>/dev/null || chmod +x "$GITHUB_WORKSPACE/chez-install/bin/cc" + { echo '#!/bin/sh'; echo 'exec gcc "$@"'; } > "$bindir/cc" + chmod +x "$bindir/cc" - name: Show Chez version run: chez --version