Fix compatibility issue with Go 1.19.

This commit is contained in:
Shawn Poulson
2023-08-01 15:46:35 -04:00
parent 3512e706b4
commit 2321d26da6

View File

@@ -43,6 +43,11 @@ type componentBuildResult[T any] struct {
value low.ValueReference[T] value low.ValueReference[T]
} }
type inputValue struct {
node *yaml.Node
currentLabel *yaml.Node
}
// GetExtensions returns all Components extensions and satisfies the low.HasExtensions interface. // GetExtensions returns all Components extensions and satisfies the low.HasExtensions interface.
func (co *Components) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] { func (co *Components) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
return co.Extensions return co.Extensions
@@ -229,11 +234,6 @@ func extractComponentValues[T low.Buildable[N], N any](label string, root *yaml.
return emptyResult, fmt.Errorf("node is array, cannot be used in components: line %d, column %d", nodeValue.Line, nodeValue.Column) return emptyResult, fmt.Errorf("node is array, cannot be used in components: line %d, column %d", nodeValue.Line, nodeValue.Column)
} }
type inputValue struct {
node *yaml.Node
currentLabel *yaml.Node
}
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
defer cancel() defer cancel()
in := make(chan inputValue) in := make(chan inputValue)