From f7e019d939122a73f045eb5a014f6ebde253331b Mon Sep 17 00:00:00 2001 From: Carlos Amedee Date: Wed, 15 Jun 2022 11:42:45 -0400 Subject: [PATCH] cmd/gomote: add missing field to GRPC push This change adds a missing directory setting to the GRPC push command. For golang/go#48737 For golang/go#47521 Change-Id: I33daab7da55403df83033d0d4b6921bfeb10623c Reviewed-on: https://go-review.googlesource.com/c/build/+/412374 Reviewed-by: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov Auto-Submit: Carlos Amedee --- cmd/gomote/push.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/gomote/push.go b/cmd/gomote/push.go index 435261ab4e..c2ae85f05c 100644 --- a/cmd/gomote/push.go +++ b/cmd/gomote/push.go @@ -558,8 +558,9 @@ func push(args []string) error { return fmt.Errorf("unable to upload file to GCS: %s", err) } if _, err := client.WriteTGZFromURL(ctx, &protos.WriteTGZFromURLRequest{ - GomoteId: name, - Url: fmt.Sprintf("%s%s", resp.GetUrl(), resp.GetObjectName()), + GomoteId: name, + Url: fmt.Sprintf("%s%s", resp.GetUrl(), resp.GetObjectName()), + Directory: "go", }); err != nil { return fmt.Errorf("failed writing tarball to buildlet: %s", statusFromError(err)) }