You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a define a task in a makefile with an env scoped to the task, and then extend that task in another makefile, the env block gets lost.
To Reproduce
Makefile.toml:
extend = "./other.toml"
[tasks.my-task]
other.toml:
[tasks.my-task]
env = { A = "1", B = "2", C = "3" }
script = '''
#!@duckscript
echo A=${A} B=${B} C=${C}
'''
Error Stack
cargo make my-task[cargo-make] INFO - cargo make 0.37.13[cargo-make] INFO - Build File: Makefile.toml[cargo-make] INFO - Task: my-task[cargo-make] INFO - Profile: development[cargo-make] INFO - Running Task: my-taskA= B= C=[cargo-make] INFO - Build Done in 1.50 seconds.
When I comment out the "overidden" task definition in Makefile.toml, the output is correct:
cargo make my-task[cargo-make] INFO - cargo make 0.37.13[cargo-make] INFO - Build File: Makefile.toml[cargo-make] INFO - Task: my-task[cargo-make] INFO - Profile: development[cargo-make] INFO - Running Task: my-taskA=1 B=2 C=3[cargo-make] INFO - Build Done in 1.54 seconds.
The text was updated successfully, but these errors were encountered:
@wmmc88 i suspect it might be related to the fact i 'push' env vars to tasks like what makefile created them and their task name in the descriptor/mod.rs (if i remember correctly).
would you like to PR this?
Describe The Bug
If a define a task in a makefile with an
env
scoped to the task, and then extend that task in another makefile, theenv
block gets lost.To Reproduce
Makefile.toml
:other.toml
:Error Stack
When I comment out the "overidden" task definition in
Makefile.toml
, the output is correct:The text was updated successfully, but these errors were encountered: