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
then during the prevalidation of the step, current.cube itself is a substitution that's not yet valid at prevalidation time. The substitution error gets frozen into the prevalidated dict. The cube setting is updated by this line, but since cube-fits is not a parameter, it doesn't get updated and ends up throwing the substitution error upwards.
Workaround: specify cube-fits at the step definition.
Proper solutions:
anything that's unresolved at prevalidation time should be tossed out from the prevalidated dict when validating the step prior to execution.
or, any default setting in the cargo should be copied into the step's param dict (because then it is always revalidated).
The text was updated successfully, but these errors were encountered:
Also related -- should a subrecipe default allow lookup in recipe (referring to itself?) This arises in make_masks in parrot-stew-recipes. Also happens if an alias picks up a default from a step definition referring to recipe.
See
tron-breifast
for an example.The breifast subrecipe defines two particular inputs:
In principle only
cube
should be needed. However, if the recipe is a sub-recipe of another recipe like so:then during the prevalidation of the step,
current.cube
itself is a substitution that's not yet valid at prevalidation time. The substitution error gets frozen into the prevalidated dict. Thecube
setting is updated by this line, but sincecube-fits
is not a parameter, it doesn't get updated and ends up throwing the substitution error upwards.Workaround: specify
cube-fits
at the step definition.Proper solutions:
anything that's unresolved at prevalidation time should be tossed out from the prevalidated dict when validating the step prior to execution.
or, any default setting in the cargo should be copied into the step's param dict (because then it is always revalidated).
The text was updated successfully, but these errors were encountered: