Closed Javagedes closed 1 year ago
thanks @Javagedes for reporting. clear=true sshould remove everything. if its not, i'll fix. i'll check it out. CARGO_MAKE_CURRENTTASK... env vars are pushed automatically in runtime.
@Javagedes sorry for the really really late reply. I found the issue and i hope the fix will resolve it. Can you please verify it in the 0.36.7 development branch
cargo-make is now released with this fix. thanks for reporting and please try it out.
Describe The Bug
In our current project, we override the pre-made common tasks (Build, Test, Coverage) with our own custom tasks, setting
clear = true
in the task as the documentation specifies that this deletes the existing task attributes. I personally read this as we are not extending the task, but completely overwriting it so only our task remains.However, I'm experiencing an issue where my override of the coverage task fails when named coverage, but succeeds when named coverage2, hinting that some information from the old task remains.
Here is the task i'm referring to:
I performed a
cargo make --print-steps coverage
to see if there was any difference, which there was:when named coverage
when named coverage2
I don't have an argument one way or the other if
clear = true
fully or partially overrides, but I just wanted to raise this issue to make sure that what I'm seeing is not a bug. If it is not a bug, I do think it could be documented a bit better as to whatclear = true
actually does.Thanks for your time :)