Open rsau opened 2 years ago
edit: I found something actionable, so I'll send a PR through shortly.
Looks like I'll need to adjust the output a bit...
For reference: This...
pygmy.defaults: "true"
pygmy.enable: "true"
pygmy.name: amazeeio-ssh-agent
pygmy.network: amazeeio-network
pygmy.output: "false"
pygmy.purpose: sshagent
pygmy.weight: "10"
Should translate to this...
pygmy.defaults: "true"
pygmy.enable: "true"
pygmy.name: "amazeeio-ssh-agent"
pygmy.network: "amazeeio-network"
pygmy.output: "false"
pygmy.purpose: "sshagent"
pygmy.weight: "10"
Forcing some type assertions should handle this, as unfortunate as that might be. I'll get back to you.
Seems like we'll need to get mergo
to use v3 of the yaml package, or we may need to replace mergo with another solution. In the meantime, here's the ticket I opened.
https://github.com/imdario/mergo/issues/206
The problem we're actually facing:
https://github.com/go-yaml/yaml/issues/139
I've no idea what changed, when and why, but I downgraded quite a bit with no change of the outcome.
Describe the bug Exported config generates decoding errors
To Reproduce Steps to reproduce the behavior:
pygmy export
pygmy up
Expected behavior No error should be in file which was exproted from the working and validated config
Output
Exported configuration