mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-12 14:37:08 +08:00
bump compose-go to v2.1.4
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
2
vendor/github.com/compose-spec/compose-go/v2/paths/resolve.go
generated
vendored
2
vendor/github.com/compose-spec/compose-go/v2/paths/resolve.go
generated
vendored
@ -38,7 +38,7 @@ func ResolveRelativePaths(project map[string]any, base string, remotes []RemoteR
|
||||
"services.*.build.additional_contexts.*": r.absContextPath,
|
||||
"services.*.env_file.*.path": r.absPath,
|
||||
"services.*.extends.file": r.absExtendsPath,
|
||||
"services.*.develop.watch.*.path": r.absPath,
|
||||
"services.*.develop.watch.*.path": r.absSymbolicLink,
|
||||
"services.*.volumes.*": r.absVolumeMount,
|
||||
"configs.*.file": r.maybeUnixPath,
|
||||
"secrets.*.file": r.maybeUnixPath,
|
||||
|
14
vendor/github.com/compose-spec/compose-go/v2/paths/unix.go
generated
vendored
14
vendor/github.com/compose-spec/compose-go/v2/paths/unix.go
generated
vendored
@ -19,6 +19,8 @@ package paths
|
||||
import (
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/compose-spec/compose-go/v2/utils"
|
||||
)
|
||||
|
||||
func (r *relativePathsResolver) maybeUnixPath(a any) (any, error) {
|
||||
@ -38,3 +40,15 @@ func (r *relativePathsResolver) maybeUnixPath(a any) (any, error) {
|
||||
}
|
||||
return p, nil
|
||||
}
|
||||
|
||||
func (r *relativePathsResolver) absSymbolicLink(value any) (any, error) {
|
||||
abs, err := r.absPath(value)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
str, ok := abs.(string)
|
||||
if !ok {
|
||||
return abs, nil
|
||||
}
|
||||
return utils.ResolveSymbolicLink(str)
|
||||
}
|
||||
|
Reference in New Issue
Block a user