Skip to content

Commit

Permalink
Allow local references in depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Nov 3, 2023
1 parent 488a638 commit 07030d8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/schema/0.12/data_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func datasourceBlockSchema(v *version.Version) *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
schema.Reference{OfScopeId: refscope.LocalScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/0.12/output_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func outputBlockSchema() *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
schema.Reference{OfScopeId: refscope.LocalScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/0.12/resource_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func resourceBlockSchema(v *version.Version) *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
schema.Reference{OfScopeId: refscope.LocalScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/0.13/module_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func moduleBlockSchema() *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
schema.Reference{OfScopeId: refscope.LocalScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/1.5/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func scopedDataBlock() *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
schema.Reference{OfScopeId: refscope.LocalScope},
},
},
IsOptional: true,
Expand Down

0 comments on commit 07030d8

Please sign in to comment.