Polish Tcl/Tk workflow and Dockerfile review nits

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Darryl L. Miles 2026-07-20 16:31:27 +01:00 committed by R. Timothy Edwards
parent a05dd555a9
commit e28c93bb90
8 changed files with 20 additions and 20 deletions

View File

@ -128,7 +128,7 @@ jobs:
if [ "$source_method" = "github" ]; then
tcl_tmpdir=$(mktemp -d)
git -c advice.detachedHead=false clone --depth 1 --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
git -c advice.detachedHead=false clone --depth 1 --single-branch --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
tcl_commit=$(git -C "$tcl_tmpdir" rev-parse HEAD)
tcl_commit_date=$(git -C "$tcl_tmpdir" log -1 --format=%ci)
rm -rf "$tcl_tmpdir"

View File

@ -128,7 +128,7 @@ jobs:
if [ "$source_method" = "github" ]; then
tcl_tmpdir=$(mktemp -d)
git -c advice.detachedHead=false clone --depth 1 --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
git -c advice.detachedHead=false clone --depth 1 --single-branch --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
tcl_commit=$(git -C "$tcl_tmpdir" rev-parse HEAD)
tcl_commit_date=$(git -C "$tcl_tmpdir" log -1 --format=%ci)
rm -rf "$tcl_tmpdir"

View File

@ -128,7 +128,7 @@ jobs:
if [ "$source_method" = "github" ]; then
tcl_tmpdir=$(mktemp -d)
git -c advice.detachedHead=false clone --depth 1 --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
git -c advice.detachedHead=false clone --depth 1 --single-branch --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
tcl_commit=$(git -C "$tcl_tmpdir" rev-parse HEAD)
tcl_commit_date=$(git -C "$tcl_tmpdir" log -1 --format=%ci)
rm -rf "$tcl_tmpdir"

View File

@ -128,7 +128,7 @@ jobs:
if [ "$source_method" = "github" ]; then
tcl_tmpdir=$(mktemp -d)
git -c advice.detachedHead=false clone --depth 1 --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
git -c advice.detachedHead=false clone --depth 1 --single-branch --branch "$tcl_ref" https://github.com/tcltk/tcl.git "$tcl_tmpdir"
tcl_commit=$(git -C "$tcl_tmpdir" rev-parse HEAD)
tcl_commit_date=$(git -C "$tcl_tmpdir" log -1 --format=%ci)
rm -rf "$tcl_tmpdir"

View File

@ -26,12 +26,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TCL_TARBALL_URL" -o /tmp/tcl-src.tar.gz; \
actual_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
computed_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TCL_TARBALL_SHA256" ]; then \
echo "$TCL_TARBALL_SHA256 /tmp/tcl-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tcl tarball ($TCL_TARBALL_URL)"; \
echo "WARNING: actual Tcl tarball SHA256 is $actual_tcl_sha"; \
echo "WARNING: actual Tcl tarball SHA256 is $computed_tcl_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tcl-src.tar.gz -C .; \
fi; \
@ -47,12 +47,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TK_TARBALL_URL" -o /tmp/tk-src.tar.gz; \
actual_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
computed_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TK_TARBALL_SHA256" ]; then \
echo "$TK_TARBALL_SHA256 /tmp/tk-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tk tarball ($TK_TARBALL_URL)"; \
echo "WARNING: actual Tk tarball SHA256 is $actual_tk_sha"; \
echo "WARNING: actual Tk tarball SHA256 is $computed_tk_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tk-src.tar.gz -C .; \
fi; \

View File

@ -35,12 +35,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TCL_TARBALL_URL" -o /tmp/tcl-src.tar.gz; \
actual_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
computed_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TCL_TARBALL_SHA256" ]; then \
echo "$TCL_TARBALL_SHA256 /tmp/tcl-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tcl tarball ($TCL_TARBALL_URL)"; \
echo "WARNING: actual Tcl tarball SHA256 is $actual_tcl_sha"; \
echo "WARNING: actual Tcl tarball SHA256 is $computed_tcl_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tcl-src.tar.gz -C .; \
fi; \
@ -56,12 +56,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TK_TARBALL_URL" -o /tmp/tk-src.tar.gz; \
actual_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
computed_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TK_TARBALL_SHA256" ]; then \
echo "$TK_TARBALL_SHA256 /tmp/tk-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tk tarball ($TK_TARBALL_URL)"; \
echo "WARNING: actual Tk tarball SHA256 is $actual_tk_sha"; \
echo "WARNING: actual Tk tarball SHA256 is $computed_tk_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tk-src.tar.gz -C .; \
fi; \

View File

@ -25,12 +25,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TCL_TARBALL_URL" -o /tmp/tcl-src.tar.gz; \
actual_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
computed_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TCL_TARBALL_SHA256" ]; then \
echo "$TCL_TARBALL_SHA256 /tmp/tcl-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tcl tarball ($TCL_TARBALL_URL)"; \
echo "WARNING: actual Tcl tarball SHA256 is $actual_tcl_sha"; \
echo "WARNING: actual Tcl tarball SHA256 is $computed_tcl_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tcl-src.tar.gz -C .; \
fi; \
@ -46,12 +46,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TK_TARBALL_URL" -o /tmp/tk-src.tar.gz; \
actual_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
computed_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TK_TARBALL_SHA256" ]; then \
echo "$TK_TARBALL_SHA256 /tmp/tk-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tk tarball ($TK_TARBALL_URL)"; \
echo "WARNING: actual Tk tarball SHA256 is $actual_tk_sha"; \
echo "WARNING: actual Tk tarball SHA256 is $computed_tk_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tk-src.tar.gz -C .; \
fi; \

View File

@ -26,12 +26,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TCL_TARBALL_URL" -o /tmp/tcl-src.tar.gz; \
actual_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
computed_tcl_sha=$(sha256sum /tmp/tcl-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TCL_TARBALL_SHA256" ]; then \
echo "$TCL_TARBALL_SHA256 /tmp/tcl-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tcl tarball ($TCL_TARBALL_URL)"; \
echo "WARNING: actual Tcl tarball SHA256 is $actual_tcl_sha"; \
echo "WARNING: actual Tcl tarball SHA256 is $computed_tcl_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tcl-src.tar.gz -C .; \
fi; \
@ -47,12 +47,12 @@ RUN set -eux; \
git checkout --detach "$TCL_REF"; \
else \
curl -fsSL "$TK_TARBALL_URL" -o /tmp/tk-src.tar.gz; \
actual_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
computed_tk_sha=$(sha256sum /tmp/tk-src.tar.gz | cut -d' ' -f1); \
if [ -n "$TK_TARBALL_SHA256" ]; then \
echo "$TK_TARBALL_SHA256 /tmp/tk-src.tar.gz" | sha256sum --check -; \
else \
echo "WARNING: no known SHA for Tk tarball ($TK_TARBALL_URL)"; \
echo "WARNING: actual Tk tarball SHA256 is $actual_tk_sha"; \
echo "WARNING: actual Tk tarball SHA256 is $computed_tk_sha"; \
fi; \
tar --strip-components=1 -xzf /tmp/tk-src.tar.gz -C .; \
fi; \