Skip to content

Commit 379344f

Browse files
authored
fix: Support modules tag in config (#965)
Fixes an issue with old configs.
1 parent 026a9ae commit 379344f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/config/config_parser.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ var configSchemaHCL = &hcl.BodySchema{
3333
Type: "provider",
3434
LabelNames: []string{"name"},
3535
},
36+
{
37+
Type: "modules", // deprecated
38+
},
3639
{
3740
Type: "policy",
3841
LabelNames: []string{"name"},
@@ -175,6 +178,9 @@ func (p *Parser) decodeConfigHCL(body hcl.Body, diags diag.Diagnostics) (*Config
175178
}
176179
case "policy":
177180
hasPolicyBlock = true
181+
case "modules":
182+
// deprecated - ignore
183+
continue
178184
default:
179185
// Should never happen because the above cases should be exhaustive
180186
// for all block type names in our schema.

0 commit comments

Comments
 (0)