Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple spec versions #2

Closed
nscuro opened this issue May 13, 2021 · 2 comments
Closed

Support multiple spec versions #2

nscuro opened this issue May 13, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@nscuro
Copy link
Member

nscuro commented May 13, 2021

Supporting only the latest spec version drastically limits upgradability and may break some workflows. We should support all versions, as well as converting between them. While the CLI certainly can do that too, this library should able to do it as well.

Will have to make sure that spec version specific package names are compatible with Go's major versioning strategies, see https://blog.golang.org/v2-go-modules

@nscuro nscuro added the enhancement New feature or request label May 13, 2021
@nscuro nscuro modified the milestones: v1.0.0, v0.2.0 May 13, 2021
@nscuro nscuro removed this from the v0.2.0 milestone Jun 22, 2021
@nscuro
Copy link
Member Author

nscuro commented Aug 11, 2021

Another solution could be to release a new major version everytime the supported spec version is incremented.

@nscuro nscuro added this to the v1.0.0 milestone Feb 8, 2022
@nscuro nscuro modified the milestones: v1.0.0, v0.7.0 Sep 25, 2022
@nscuro
Copy link
Member Author

nscuro commented Sep 25, 2022

Implemented in #51. Instead of introducing separate models for every spec version, or solving this via versioning of the module itself, we now "downgrade" the BOM before encoding it if necessary.

This makes working with the model a lot simpler.

@nscuro nscuro closed this as completed Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant