build: skip moby.buildkit.trace Aux message to be future proof

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2018-06-09 20:48:13 +00:00
parent 5919e8a30f
commit aef42093b8
1 changed files with 4 additions and 0 deletions

View File

@ -261,6 +261,10 @@ func newTracer() *tracer {
func (t *tracer) write(msg jsonmessage.JSONMessage) { func (t *tracer) write(msg jsonmessage.JSONMessage) {
var resp controlapi.StatusResponse var resp controlapi.StatusResponse
if msg.ID != "moby.buildkit.trace" {
return
}
var dt []byte var dt []byte
if err := json.Unmarshal(*msg.Aux, &dt); err != nil { if err := json.Unmarshal(*msg.Aux, &dt); err != nil {
return return