I know tasks are configured in the configuration phase and not in the execution phase. Actually, I could put info in some files, and uses thoses files as task input
v
Vampire
03/03/2022, 10:15 AM
Actually such "configuration tasks" that configure another task in their execution phase are simply possible.
But they are bad practice and no longer possible if you care about the upcoming configuration cache which makes them illegal of course.
g
guillaume le floch
03/03/2022, 10:21 AM
Right, but using a file would work and be less a bad practice right? I don’t know much about the Provider API, but is it possible to output a provider from a task and consume it in another task ?
v
Vampire
03/03/2022, 10:29 AM
Writing to a file is probably the cleanest solution, yes.
Especially as only file outputs can properly be considered for up-to-date checks.