mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
bump compose-go to v2.1.1
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
7
vendor/github.com/compose-spec/compose-go/v2/override/uncity.go
generated
vendored
7
vendor/github.com/compose-spec/compose-go/v2/override/uncity.go
generated
vendored
@ -198,12 +198,15 @@ func portIndexer(y any, p tree.Path) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func envFileIndexer(y any, _ tree.Path) (string, error) {
|
||||
func envFileIndexer(y any, p tree.Path) (string, error) {
|
||||
switch value := y.(type) {
|
||||
case string:
|
||||
return value, nil
|
||||
case map[string]any:
|
||||
return value["path"].(string), nil
|
||||
if pathValue, ok := value["path"]; ok {
|
||||
return pathValue.(string), nil
|
||||
}
|
||||
return "", fmt.Errorf("environment path attribut %s is missing", p)
|
||||
}
|
||||
return "", nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user