// there are only two intrinsic tasks, so check them first
ifrawType=="clean"||rawType=="extend"{
legacyEngine="convey"
}
// figure out the engine
ifrawEngine!=""{
logger.Warn("the engine attribute is deprecated and will be removed in a future version. Please update to the new type format as this format will be removed in a future version.")
ifrawEngine=="intrinsic"{
logger.Warn("the intrinsic engine is deprecated, using convey instead")
"converted deprecated task format {engine: '%s', type: '%s'} to type %s. Please update to the new type format as this format will be removed in a future version.",
rawEngine,
rawType,
typeName,
)
task,ok:=cConfig.TasksMap[typeName]
if!ok{
returnnil,fmt.Errorf(
"failed to find task with engine '%s' and type '%s'",