mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-18 01:08:03 +08:00
vendor: update compose-go to v2.4.8
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
9
vendor/github.com/compose-spec/compose-go/v2/paths/context.go
generated
vendored
9
vendor/github.com/compose-spec/compose-go/v2/paths/context.go
generated
vendored
@@ -16,13 +16,20 @@
|
||||
|
||||
package paths
|
||||
|
||||
import "strings"
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/compose-spec/compose-go/v2/types"
|
||||
)
|
||||
|
||||
func (r *relativePathsResolver) absContextPath(value any) (any, error) {
|
||||
v := value.(string)
|
||||
if strings.Contains(v, "://") { // `docker-image://` or any builder specific context type
|
||||
return v, nil
|
||||
}
|
||||
if strings.HasPrefix(v, types.ServicePrefix) { // `docker-image://` or any builder specific context type
|
||||
return v, nil
|
||||
}
|
||||
if isRemoteContext(v) {
|
||||
return v, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user