Closed glyn closed 5 years ago
This appears to be a side-effect, or probably a feature, of https://github.com/spf13/viper (and the underlying https://github.com/mitchellh/mapstructure).
Note that https://github.com/deislabs/duffle/issues/752 changed duffle
so that it is intended to take only duffle.json
as input (no TOML or YAML thank you), so we are free to switch from viper to standard JSON parsing.
I vote for removing viper now that we don't need multiple file formats anymore in duffle. We can just go back to using encoding/json
.
The following
duffle.json
:when input to
duffle build
, produces an invalid images section of bundle.json:This seems superficially like https://github.com/deislabs/duffle/issues/658, which was apparently fixed.
Possible clue
Change
x.y
tox
induffle.json
and the correct bundle is produced:Steps to reproduce (at least on macOS)
duffle
from https://github.com/deislabs/duffle/releases/tag/0.2.0-beta.3 and add it to your pathbuild
subdirectoryduffle build . -o outbundle.json
outbundle.json