@@ -16,6 +16,7 @@ import (
1616 "github.com/moby/buildkit/util/appcontext"
1717 "github.com/moby/buildkit/util/bklog"
1818 "github.com/pkg/errors"
19+ "github.com/project-dalec/dalec"
1920 "github.com/project-dalec/dalec/frontend/pkg/bkfs"
2021 "github.com/sirupsen/logrus"
2122 "google.golang.org/grpc/grpclog"
@@ -90,10 +91,11 @@ func main() {
9091 return nil , errors .Wrap (err , "error marshalling file manifest" )
9192 }
9293
94+ pg := dalec .ProgressGroup ("phony signer output" )
9395 output := llb .Scratch ().
94- File (llb .Mkfile ("/target" , 0o600 , []byte (target ))).
95- File (llb .Mkfile ("/config.json" , 0o600 , configBytes )).
96- File (llb .Mkfile ("/manifest.json" , 0o600 , mfst ))
96+ File (llb .Mkfile ("/target" , 0o600 , []byte (target )), pg ).
97+ File (llb .Mkfile ("/config.json" , 0o600 , configBytes ), pg ).
98+ File (llb .Mkfile ("/manifest.json" , 0o600 , mfst ), pg )
9799
98100 // For any build-arg seen, write a file to /env/<KEY> with the contents
99101 // being the value of the arg.
@@ -104,11 +106,11 @@ func main() {
104106 continue
105107 }
106108 output = output .
107- File (llb .Mkdir ("/env" , 0o755 )).
108- File (llb .Mkfile ("/env/" + key , 0o600 , []byte (v )))
109+ File (llb .Mkdir ("/env" , 0o755 ), pg ).
110+ File (llb .Mkfile ("/env/" + key , 0o600 , []byte (v )), pg )
109111 }
110112
111- def , err := output .Marshal (ctx )
113+ def , err := output .Marshal (ctx , pg )
112114 if err != nil {
113115 return nil , err
114116 }
0 commit comments