fermyon / spin

Spin is the open source developer tool for building and running serverless applications powered by WebAssembly.
https://developer.fermyon.com/spin
Apache License 2.0
5.18k stars 247 forks source link

spin doctor manifest v1->v2 conversions: preserve comments? #2138

Open vdice opened 10 months ago

vdice commented 10 months ago

When I run spin doctor on a spin.toml with v1 syntax and convert it to v2, I notice all comments are removed in the process.

Not sure how tricky it would be to retain comments at their proper positions. For now I can manually work around by copy/pasting them back in from the backup

lann commented 10 months ago

"Quite tricky". I tried, but it would basically require having two completely different copies of the v1->v2 logic.