Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
None
Description
Example project config:
tasks:
|
- name: taskA
|
commands:
|
- command: shell.exec
|
params:
|
script: |
|
echo hello
|
- name: taskB
|
commands:
|
- command: shell.exec
|
params:
|
script: |
|
echo goodbye
|
|
|
buildvariants:
|
- name: some_buildvariant
|
run_on:
|
- ubuntu1604-small
|
tasks:
|
- name: taskA
|
- name: taskB
|
depends_on:
|
- name: taskA
|
patch_optional: true
|
status: "*"
|
If I run evergreen validate on this config, it gives this warning during CheckYamlStrict:
WARNING: yaml: unmarshal errors:
line 24: field patch_optional not found in struct model.copyType
line 24: field status not found in struct model.copyType
It gives the same error if you specify depends_on in the task definition instead of the buildvariant task list. However, if you call LoadProjectInto, the actual model.Project result has PatchOptional and Status properly populated for that dependency.