Skip to content

Commit 4ef619b

Browse files
committed
Merge branch 'main' into agent-slog-opts
2 parents 26e3418 + b6c8e5b commit 4ef619b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cli/ssh.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func getWorkspaceAndAgent(ctx context.Context, inv *clibase.Invocation, client *
349349
err error
350350
)
351351

352-
workspace, err = namedWorkspace(inv.Context(), client, workspaceParts[0])
352+
workspace, err = namedWorkspace(ctx, client, workspaceParts[0])
353353
if err != nil {
354354
return codersdk.Workspace{}, codersdk.WorkspaceAgent{}, err
355355
}
@@ -362,6 +362,11 @@ func getWorkspaceAndAgent(ctx context.Context, inv *clibase.Invocation, client *
362362
if err != nil {
363363
return codersdk.Workspace{}, codersdk.WorkspaceAgent{}, err
364364
}
365+
// Fetch up-to-date build information after completion.
366+
workspace.LatestBuild, err = client.WorkspaceBuild(ctx, workspace.LatestBuild.ID)
367+
if err != nil {
368+
return codersdk.Workspace{}, codersdk.WorkspaceAgent{}, err
369+
}
365370
}
366371
if workspace.LatestBuild.Transition == codersdk.WorkspaceTransitionDelete {
367372
return codersdk.Workspace{}, codersdk.WorkspaceAgent{}, xerrors.Errorf("workspace %q is being deleted", workspace.Name)

dogfood/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN mkdir --parents "$GOPATH" && \
5353
# charts and values files
5454
go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.5.0 && \
5555
# sqlc for Go code generation
56-
go install github.com/kyleconroy/sqlc/cmd/sqlc@v1.16.0 && \
56+
go install github.com/kyleconroy/sqlc/cmd/sqlc@v1.17.2 && \
5757
# gcr-cleaner-cli used by CI to prune unused images
5858
go install github.com/sethvargo/gcr-cleaner/cmd/gcr-cleaner-cli@v0.5.1 && \
5959
# ruleguard for checking custom rules, without needing to run all of

0 commit comments

Comments
 (0)