mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-18 09:18:04 +08:00
vendor: update buildkit to v0.11@348e79dfed17
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
3
vendor/github.com/moby/buildkit/util/buildinfo/types/types.go
generated
vendored
3
vendor/github.com/moby/buildkit/util/buildinfo/types/types.go
generated
vendored
@@ -1,3 +1,6 @@
|
||||
// Package binfotypes implements types for build information.
|
||||
//
|
||||
// Deprecated: Build information is deprecated: https://github.com/moby/buildkit/blob/master/docs/deprecated.md
|
||||
package binfotypes
|
||||
|
||||
import (
|
||||
|
16
vendor/github.com/moby/buildkit/util/gitutil/git_ref.go
generated
vendored
16
vendor/github.com/moby/buildkit/util/gitutil/git_ref.go
generated
vendored
@@ -73,22 +73,12 @@ func ParseGitRef(ref string) (*GitRef, error) {
|
||||
}
|
||||
}
|
||||
|
||||
refSplitBySharp := strings.SplitN(ref, "#", 2)
|
||||
res.Remote = refSplitBySharp[0]
|
||||
var fragment string
|
||||
res.Remote, fragment, _ = strings.Cut(ref, "#")
|
||||
if len(res.Remote) == 0 {
|
||||
return res, errdefs.ErrInvalidArgument
|
||||
}
|
||||
|
||||
if len(refSplitBySharp) > 1 {
|
||||
refSplitBySharpSplitByColon := strings.SplitN(refSplitBySharp[1], ":", 2)
|
||||
res.Commit = refSplitBySharpSplitByColon[0]
|
||||
if len(res.Commit) == 0 {
|
||||
return res, errdefs.ErrInvalidArgument
|
||||
}
|
||||
if len(refSplitBySharpSplitByColon) > 1 {
|
||||
res.SubDir = refSplitBySharpSplitByColon[1]
|
||||
}
|
||||
}
|
||||
res.Commit, res.SubDir, _ = strings.Cut(fragment, ":")
|
||||
repoSplitBySlash := strings.Split(res.Remote, "/")
|
||||
res.ShortName = strings.TrimSuffix(repoSplitBySlash[len(repoSplitBySlash)-1], ".git")
|
||||
return res, nil
|
||||
|
2
vendor/github.com/moby/buildkit/util/imageutil/buildinfo.go
generated
vendored
2
vendor/github.com/moby/buildkit/util/imageutil/buildinfo.go
generated
vendored
@@ -9,6 +9,8 @@ import (
|
||||
)
|
||||
|
||||
// BuildInfo returns build info from image config.
|
||||
//
|
||||
// Deprecated: Build information is deprecated: https://github.com/moby/buildkit/blob/master/docs/deprecated.md
|
||||
func BuildInfo(dt []byte) (*binfotypes.BuildInfo, error) {
|
||||
if len(dt) == 0 {
|
||||
return nil, nil
|
||||
|
2
vendor/github.com/moby/buildkit/util/progress/progressui/init.go
generated
vendored
2
vendor/github.com/moby/buildkit/util/progress/progressui/init.go
generated
vendored
@@ -14,7 +14,7 @@ var colorError aec.ANSI
|
||||
|
||||
func init() {
|
||||
// As recommended on https://no-color.org/
|
||||
if _, ok := os.LookupEnv("NO_COLOR"); ok {
|
||||
if v := os.Getenv("NO_COLOR"); v != "" {
|
||||
// nil values will result in no ANSI color codes being emitted.
|
||||
return
|
||||
} else if runtime.GOOS == "windows" {
|
||||
|
Reference in New Issue
Block a user