Skip to content

fix: restore escaped brace command args#2818

Open
cyphercodes wants to merge 1 commit intogo-task:mainfrom
cyphercodes:fix-2812-escaped-braces
Open

fix: restore escaped brace command args#2818
cyphercodes wants to merge 1 commit intogo-task:mainfrom
cyphercodes:fix-2812-escaped-braces

Conversation

@cyphercodes
Copy link
Copy Markdown

Summary

  • Pin mvdan.cc/sh/v3 back to v3.13.0 to restore shell-compatible handling of escaped braces in command arguments.
  • Add a regression test for \{\{iriname\}\} being passed to the command as literal {{iriname}}.

Fixes #2812

Testing

  • go test ./internal/execext -count=1

  • go test ./... -run TestRunCommandEscapedBraces -count=1

  • go test ./... -count=1

  • Manual Taskfile repro with go run ./cmd/task --dir /tmp/oss-pr-pipeline/repro-2812 export

  • I have read and followed the Contribution Guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quoting of { and } does not work anymore

1 participant