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:
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