From 2853c387aac49aae5beeed2251589aa11e1bc38e Mon Sep 17 00:00:00 2001 From: Carlos Amedee Date: Fri, 10 Jun 2022 18:02:59 -0400 Subject: [PATCH] internal/gomote: fix ExecuteCommand This change fixes an incorrect variable in the ExecuteCommand endpoint. For golang/go#47521 Updates golang/go#48742 Change-Id: Ic0f63e1ce83ba86a566981bdca16d57074dbb544 Reviewed-on: https://go-review.googlesource.com/c/build/+/411065 Run-TryBot: Carlos Amedee TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov Reviewed-by: Carlos Amedee Auto-Submit: Carlos Amedee --- internal/gomote/gomote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gomote/gomote.go b/internal/gomote/gomote.go index 199f3ef9c2..3f5f684397 100644 --- a/internal/gomote/gomote.go +++ b/internal/gomote/gomote.go @@ -308,7 +308,7 @@ func (s *Server) ExecuteCommand(req *protos.ExecuteCommandRequest, stream protos return status.Errorf(codes.Internal, "unable to retrieve configuration for instance") } remoteErr, execErr := bc.Exec(stream.Context(), req.GetCommand(), buildlet.ExecOpts{ - Dir: req.GetCommand(), + Dir: req.GetDirectory(), SystemLevel: req.GetSystemLevel(), Output: &streamWriter{writeFunc: func(p []byte) (int, error) { err := stream.Send(&protos.ExecuteCommandResponse{