Skip to content

Fix handling of CLI provided global vars. #2288

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant