Skip to content

Conversation

pd93
Copy link
Member

@pd93 pd93 commented Mar 10, 2025

Fixes #2106

Also related to:

The fundamental issue is that some special variables are not available when evaluating variables outside of a task. This causes the error seen in #2106 and has actually been an issue for a while. However, it was only surfaced in 3.42 because of the refactor in #2084 which moved a call to GetTaskfileVariables without moving the corresponding if len(tf.Dotenv) == 0 {...} check.

This PR fixes both of these issues:

@pd93 pd93 merged commit 6604b9a into main Mar 10, 2025
14 checks passed
@pd93 pd93 deleted the 2106-fix-bug-in-dotenv-handler branch March 10, 2025 11:46
pd93 added a commit that referenced this pull request Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants