Skip to content

Commit

Permalink
feat: #3 rejigged the constraint versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
xntrik committed Nov 13, 2022
1 parent 26a09bb commit ac2655a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/spec/parser_constraints.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ func (c *controlStringToBlock) asOf() string {
return "0.1.5"
}
func (c *controlStringToBlock) verConstraint() string {
return "<= 0.1.4"
return ">= 0.0.1"
}
func (c *controlStringToBlock) msg() string {
return "Deprecation warning: This threat model has defined `control` strings inside of `threat` blocks. It's recommended that you update these to `expanded_control` blocks, as they may be cause errors in future versions of hcltm."
return "Deprecation warning: This threat model has defined `control` strings inside of `threat` blocks. As of v0.1.5 It's recommended that you update these to `expanded_control` blocks, as they may be cause errors in future versions of hcltm."
}
func (c *controlStringToBlock) tmCheck(tm *Threatmodel) bool {

Expand All @@ -40,10 +40,10 @@ func (c *proposedControlToBlock) asOf() string {
return "0.1.5"
}
func (c *proposedControlToBlock) verConstraint() string {
return "<= 0.1.4"
return ">= 0.0.1"
}
func (c *proposedControlToBlock) msg() string {
return "Deprecation warning: This threat model has defined `proposed_control` block(s) inside of `threat` blocks. It's recommended that you update these to `expanded_control` blocks, as they may be cause errors in future versions of hcltm."
return "Deprecation warning: This threat model has defined `proposed_control` block(s) inside of `threat` blocks. As of v0.1.5 It's recommended that you update these to `expanded_control` blocks, as they may be cause errors in future versions of hcltm."
}
func (c *proposedControlToBlock) tmCheck(tm *Threatmodel) bool {

Expand Down

0 comments on commit ac2655a

Please sign in to comment.