Fix compatibility issue with Go 1.19.

This commit is contained in:
Shawn Poulson
2023-08-01 15:46:35 -04:00
committed by quobix
parent 9562230084
commit dc4670028c

View File

@@ -43,6 +43,11 @@ type componentBuildResult[T any] struct {
value low.ValueReference[T]
}
type inputValue struct {
node *yaml.Node
currentLabel *yaml.Node
}
// GetExtensions returns all Components extensions and satisfies the low.HasExtensions interface.
func (co *Components) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
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)
}
type inputValue struct {
node *yaml.Node
currentLabel *yaml.Node
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
in := make(chan inputValue)