Skip to content

test: add coverage for sh: vars with included Taskfiles#2731

Open
JonZeolla wants to merge 1 commit intogo-task:mainfrom
JonZeolla:test/sh-var-with-includes-2720
Open

test: add coverage for sh: vars with included Taskfiles#2731
JonZeolla wants to merge 1 commit intogo-task:mainfrom
JonZeolla:test/sh-var-with-includes-2720

Conversation

@JonZeolla
Copy link
Contributor

Summary

Context

PR #2721 fixed a regression where global sh: variables resolved to empty strings when the Taskfile had includes:. That PR was superseded by the revert in #2723, but no test was added to prevent the issue from recurring. This PR adds that missing test coverage.

Test plan

  • TestShVarWithIncludes passes on current main (post-revert)
  • Golden file asserts DYNAMIC_VAR=hello and DERIVED_VAR=hello world

🤖 Generated with Claude Code

Add TestShVarWithIncludes to ensure sh: dynamic variables are correctly
resolved when a Taskfile also has includes. This guards against
regressions like the one fixed in v3.49.1 (go-task#2720, go-task#2721).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant