test: add coverage for sh: vars with included Taskfiles by JonZeolla · Pull Request #2731 · go-task/task

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@JonZeolla

Copy link Copy Markdown

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>

@trulede trulede self-assigned this

Mar 24, 2026

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

Reviewers

No reviews

Assignees

@trulede trulede

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JonZeolla @trulede