mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-24 20:28:02 +08:00
vendor: update buildkit to 55ba9d14
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
8
vendor/github.com/moby/buildkit/frontend/subrequests/outline/outline.go
generated
vendored
8
vendor/github.com/moby/buildkit/frontend/subrequests/outline/outline.go
generated
vendored
@@ -101,7 +101,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
|
||||
fmt.Fprintf(tw, "DESCRIPTION:\t%s\n", o.Description)
|
||||
}
|
||||
tw.Flush()
|
||||
fmt.Println()
|
||||
fmt.Fprintln(tw)
|
||||
}
|
||||
|
||||
if len(o.Args) > 0 {
|
||||
@@ -111,7 +111,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
|
||||
fmt.Fprintf(tw, "%s\t%s\t%s\n", a.Name, a.Value, a.Description)
|
||||
}
|
||||
tw.Flush()
|
||||
fmt.Println()
|
||||
fmt.Fprintln(tw)
|
||||
}
|
||||
|
||||
if len(o.Secrets) > 0 {
|
||||
@@ -125,7 +125,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
|
||||
fmt.Fprintf(tw, "%s\t%s\n", s.Name, b)
|
||||
}
|
||||
tw.Flush()
|
||||
fmt.Println()
|
||||
fmt.Fprintln(tw)
|
||||
}
|
||||
|
||||
if len(o.SSH) > 0 {
|
||||
@@ -139,7 +139,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
|
||||
fmt.Fprintf(tw, "%s\t%s\n", s.Name, b)
|
||||
}
|
||||
tw.Flush()
|
||||
fmt.Println()
|
||||
fmt.Fprintln(tw)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
17
vendor/github.com/moby/buildkit/util/progress/progress.go
generated
vendored
17
vendor/github.com/moby/buildkit/util/progress/progress.go
generated
vendored
@@ -274,3 +274,20 @@ func (pw *noOpWriter) Write(_ string, _ interface{}) error {
|
||||
func (pw *noOpWriter) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func OneOff(ctx context.Context, id string) func(err error) error {
|
||||
pw, _, _ := NewFromContext(ctx)
|
||||
now := time.Now()
|
||||
st := Status{
|
||||
Started: &now,
|
||||
}
|
||||
pw.Write(id, st)
|
||||
return func(err error) error {
|
||||
// TODO: set error on status
|
||||
now := time.Now()
|
||||
st.Completed = &now
|
||||
pw.Write(id, st)
|
||||
pw.Close()
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -358,7 +358,7 @@ github.com/mitchellh/go-wordwrap
|
||||
# github.com/mitchellh/mapstructure v1.5.0
|
||||
## explicit; go 1.14
|
||||
github.com/mitchellh/mapstructure
|
||||
# github.com/moby/buildkit v0.10.1-0.20220809151411-8488654e899b
|
||||
# github.com/moby/buildkit v0.10.1-0.20220816171719-55ba9d14360a
|
||||
## explicit; go 1.17
|
||||
github.com/moby/buildkit/api/services/control
|
||||
github.com/moby/buildkit/api/types
|
||||
|
Reference in New Issue
Block a user