Closed jimsheldon closed 1 year ago
@jimsheldon I improved the logic here, if you want to test: https://github.com/drone/go-convert/commit/46798623493eed2209fdd014c0d1713a3543d19c#diff-8865ad14716d0f160ef996df47eb1750206588bf431971e39cf3c5042237a769R513
Note that there are some optimizations, like forcing macos
to use arm64
when the runtime is cloud since we do not support intel chips in the cloud. Similar to windows only supporting amd64
. So in some cases, where it makes sense, we ignore or override the data from the yaml if we know it would otherwise product a yaml that would fail at runtime.
Thanks @bradrydzewski conversion looks good now, thanks.
The
platform
parameter is not converted consistently.Examples
Linux/arm64
Conversion to new Harness YAML:
The above conversion set
arm64
as expected.Conversion to old Harness YAML:
The above converted yaml has
Amd64
which is wrong.Windows/amd64
Conversion to new Harness YAML:
The above conversion set
windows
as expected.NOTE: Should there be a warning that
version
is no longer a supported field?Conversion to old Harness YAML:
The above converted yaml has
Linux
which is wrong.