Explorer
Explorer
TTask
Created by Explorer on 4/10/2025 in #help
In included file, cannot set task dir with a variable containing absolute path
No description
1 replies
TTask
Created by Explorer on 4/7/2025 in #help
dotenv merges in inverse order?
Hi, when specifying two dotenv files that contain common keys, it seems that priority is given to the first file instead of the last file. This seems counter-intuitive to me and is the opposite of what was found in https://discord.com/channels/974121106208354339/1064231491883782215/1064231491883782215. first.env:
A=a
B=b
A=a
B=b
second.env:
B=x
C=c
B=x
C=c
Taskfile.yml:
version: "3"
dotenv: ["first.env", "second.env"]
tasks:
test: echo Variable B holds value $B
version: "3"
dotenv: ["first.env", "second.env"]
tasks:
test: echo Variable B holds value $B
Running "task test" gives as output
Variable B holds value b
Variable B holds value b
while I would expect
Variable B holds value x
Variable B holds value x
Is it a bug or a feature?
6 replies