Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: task level vars are not ignored in requires #1960

Merged
merged 4 commits into from
Dec 30, 2024
Merged

Conversation

vmaerten
Copy link
Member

fixes :

AFAIK, there is no reason to pass nil to vars in compiledTask
Am I missing something here ?

@vmaerten vmaerten marked this pull request as ready for review December 15, 2024 14:10
variables.go Show resolved Hide resolved
testdata/requires/Taskfile.yml Outdated Show resolved Hide resolved
variables.go Show resolved Hide resolved
@andreynering
Copy link
Member

FYI: Looks like there was a previous PR that addresses this issue: #1769

@vmaerten
Copy link
Member Author

FYI: Looks like there was a previous PR that addresses this issue: #1769

Oh my bad you're right! I initially focused on #1955, but then I realized it would also address #1768.

@andreynering
Copy link
Member

@vmaerten No problem. It's fine to merge this one, but we'll need to close that PR.

Good reminder that when adding a line with Co-authored-by: Name <[email protected]> on the commit message, GitHub gives credit to the person as a co-author. Sometimes I use that when working on top of someone else's work.

@vmaerten vmaerten merged commit da40aab into main Dec 30, 2024
14 checks passed
@vmaerten vmaerten deleted the fix/require-vars branch December 30, 2024 18:11
vmaerten added a commit that referenced this pull request Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to use Requires to limit Wildcards Task-level vars are ignored during 'requires' evaluation
3 participants