ci: escape literal parens in Nushell publish-step strings #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-nu-string-interp-parens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
v0.7.0release build failed before publishing any artifact:The FJ-24 publish steps build their log messages with Nushell interpolated strings (
$"..."), where parentheses denote a subexpression. Literal text such as(HTTP 404),(HTTP 200),(write-once), and(ignoring 404)was parsed as a command invocation (HTTP,write-once,ignoring), so the step aborted.Fix
Escape the literal parens as
\(/\)in the messages that also interpolate a value (so($url)and friends still expand), and drop the$prefix on the one message that has no interpolation so it is a plain string. Applied identically tobuild-binary.ymlandbuild-binary-windows.yml(8 strings total, 4 per file). No behavioral change beyond letting the steps run; the publish/dry-run logic is untouched.Verification
Confirmed each fixed string parses and renders correctly under Nushell 0.112.2 (the runner version), e.g.
[dry-run] WOULD upload (write-once) fj-linux-x86_64 to <url>. A repo-wide grep for unescaped parenthesized barewords inside$"..."interpolations now returns nothing.Recommend re-running the failed
v0.7.0tag build once this is onmainso the release artifacts publish.