https://garden.io logo
#🌱|help-and-getting-started
dependency on disabled run actions causes those actions to run
# 🌱|help-and-getting-started
m

mammoth-flag-56137

01/23/2024, 2:44 AM
in 0.12 you could list a disabled task as a dependency and it would consider that dependency satisfied without running it as of 0.13 listing a run action as a dependency will cause it to run even if its disabled is there a way to match the 0.12 behaviour? i did notice workflows appear to have some syntax around skipping actions etc, is it intended to deal with this via workflows now?
q

quaint-dress-831

01/23/2024, 9:18 AM
@mammoth-flag-56137 can you define "task" here? Is this any action?
m

mammoth-flag-56137

01/23/2024, 9:19 AM
a run action
in 0.12 it was a task on a module
in 0.13 the equiv is a run action
q

quaint-dress-831

01/23/2024, 9:21 AM
Gotcha. I myself am confused by this as the docs explicitly mention that dependencies that refer to a disabled action are ignored: https://docs.garden.io/reference/action-types/run/exec#disabled
m

mammoth-flag-56137

01/23/2024, 9:22 AM
in 0.12 you could have (psuedo code)
Copy code
module
deps:
  - taskfoo
  - taskbar

tasks:
  taskfoo:
    disabled: true
  taskbar:
    disabled: false
and garden would only run taskbar before deploying the module
q

quaint-dress-831

01/23/2024, 9:22 AM
But @flat-state-47578, in the thread below, mentioned that disabled actions run if set as a dependency https://discord.com/channels/817392104711651328/1198800256935141396/1198809423066435654
m

mammoth-flag-56137

01/23/2024, 9:22 AM
now in 0.13 if you add a run action as a dep of a deploy action it will always run even if the run action is set to disabled
yeah
thats sort of technically a feature regression?
q

quaint-dress-831

01/23/2024, 9:23 AM
Yes, this seems odd to me. I'll ping the engineers.
m

mammoth-flag-56137

01/23/2024, 9:24 AM
btw ek is my jnr which is why the two of us are making all these threads, we're trying to move from 0.12 to 0.13 and having a FUN time of it 😛
q

quaint-dress-831

01/23/2024, 9:26 AM
Oh wow, haha, well good to have you both here with us! Migrations are always fun 😅
m

mammoth-flag-56137

01/23/2024, 9:27 AM
we're two steps away from getting a fresh deploy of a new env using 0.13 working, then will come finding out what happens when we try to 'upgrade' from an old 0.12 deploy
s

swift-garage-61180

01/24/2024, 4:28 PM
Hi @mammoth-flag-56137! Thanks for flagging this. I'll take a look at this in the coming days, will hopefully be a simple fix.
Here we go @mammoth-flag-56137: https://github.com/garden-io/garden/pull/5697
Should be part of our next release. Thanks again!
m

mammoth-flag-56137

02/02/2024, 12:43 PM
yay, thank you