suzuki-shunsuke / buildflow

CLI tool for powerful build pipeline
MIT License
1 stars 0 forks source link

fix: failed to parge a map in meta: cannot convert to object: map[interface {}]interface {} #79

Closed suzuki-shunsuke closed 4 years ago

suzuki-shunsuke commented 4 years ago

How to reproduce

.buildflow.yaml

---
phases:
- name: main
  tasks:
  - name: hello
    meta:
      foo:
        bar: zoo
    command:
      command: echo hello
$ buildflow run
==============
= Phase: main =
==============
10:03:39UTC | hello | + /bin/sh -c echo hello
10:03:39UTC | hello |
10:03:39UTC | hello | hello
10:03:39UTC | hello |

================
= Phase Result: main =
================
status: failed
error: cannot convert to object: map[interface {}]interface {}
task: hello
status: succeeded
exit code: 0
start time: 2020-10-15T10:03:39Z
end time: 2020-10-15T10:03:39Z
duration: 4.232052ms
+ /bin/sh -c echo hello
hello

FATA[0000] cannot convert to object: map[interface {}]interface {}
suzuki-shunsuke commented 4 years ago

related: https://github.com/suzuki-shunsuke/tengo-tester/issues/6

suzuki-shunsuke commented 4 years ago

https://github.com/suzuki-shunsuke/go-convmap

suzuki-shunsuke commented 4 years ago

80