syft icon indicating copy to clipboard operation
syft copied to clipboard

feature: Experimental Schema

Open spiffcs opened this issue 1 year ago • 2 comments

What would you like to be added: Syft should have a way to allow users to use a prereleased schema that does not follow the v1 stability rules. This schema is where new "breaking" changes will be iterated on if they cannot land in syft v1.x.x

Why is this needed: Certain work currently needs a way to change the schema that is not backwards compatible. This feature would allow that work to land.

spiffcs avatar Oct 15 '24 16:10 spiffcs

this might be a dup or a heavy overlap https://github.com/anchore/syft/issues/3316

wagoodman avatar Oct 15 '24 17:10 wagoodman

Also worth noting currently the tools-golang supports conversion between versions using this library: https://github.com/anchore/go-struct-converter by way of having separate, concrete structs for each minor version that has breaking changes. The library handles moving data during conversion between different packages that have similar structures, using a similar idea to database migrations. I don't know how overlapping this would be to any work going on here.

kzantow avatar Oct 15 '24 17:10 kzantow