Skip to content

Conversation

@trulede
Copy link
Contributor

@trulede trulede commented Jun 8, 2025

When CLI provided global vars are provided, they are placed in e.Taskfile.Vars after the global vars from the Taskfile. As a result, global vars defined in the Taskfile cannot reference those provided at the CLI. This PR changes the order that those CLI provided global vars are merged into e.Taskfile.Vars but/and retains priority for the CLI provided global vars.

fixes #1580
fixes #1565 (probably)
fixes #2090
fixes #1108

may also partly resolve #2063

@vmaerten
Copy link
Member

Thanks for the PR! I'am going to merge the other one because it does not deep copy and locks vars
I'll credit you in the changelog!

@vmaerten vmaerten closed this Dec 12, 2025
@trulede
Copy link
Contributor Author

trulede commented Dec 12, 2025

@vmaerten I don't need credit. Thanks for getting to this one.

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

Labels

None yet

Projects

None yet

2 participants