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

Handle spec version is a much better way #3

Closed
xntrik opened this issue Sep 16, 2021 · 1 comment
Closed

Handle spec version is a much better way #3

xntrik opened this issue Sep 16, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request in dev in dev branch
Milestone

Comments

@xntrik
Copy link
Collaborator

xntrik commented Sep 16, 2021

Currently this is tied to the version of hcltm itself, and doesn't do anything except for output in weird ways.

The spec itself should be a an interface, with different versions implementing the interfaces, allowing for handling of different versions.

@xntrik xntrik added the enhancement New feature or request label Sep 16, 2021
@xntrik
Copy link
Collaborator Author

xntrik commented Nov 13, 2022

This may not be the final work on this ticket, but, I'm starting to construct a constraint system that will allow for degradation warnings etc.

For instance, you'll be able to define a struct that meets a hcltmConstraint interface. This includes:

  • version constraint string (using hashicorp's go-version for comparisons)
  • a threat model check function, allows each new constraint to actually parse a TM to validate whether they need to worry about the upcoming constraint
  • message - to be returned if the above two are true.

@xntrik xntrik self-assigned this Nov 13, 2022
@xntrik xntrik added this to the 0.1.5 milestone Nov 13, 2022
@xntrik xntrik mentioned this issue Nov 13, 2022
xntrik added a commit that referenced this issue Nov 13, 2022
@xntrik xntrik added the in dev in dev branch label Nov 13, 2022
xntrik added a commit that referenced this issue Nov 13, 2022
@xntrik xntrik closed this as completed Nov 13, 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 in dev in dev branch
Projects
None yet
Development

No branches or pull requests

1 participant