MCPcopy Index your code
hub / github.com/coder/coder / LatestBuild

Function LatestBuild

coderd/httpmw/workspaceagent.go:43–49  ·  view source on GitHub ↗

LatestBuild returns the Latest Build from the ExtractLatestBuild handler.

(r *http.Request)

Source from the content-addressed store, hash-verified

41
42// LatestBuild returns the Latest Build from the ExtractLatestBuild handler.
43func LatestBuild(r *http.Request) database.WorkspaceBuild {
44 wb, ok := latestBuildOptional(r)
45 if !ok {
46 panic("developer error: agent middleware not provided or was made optional")
47 }
48 return wb
49}
50
51type ExtractWorkspaceAgentAndLatestBuildConfig struct {
52 DB database.Store

Callers 2

workspaceAgentRPCMethod · 0.92

Calls 1

latestBuildOptionalFunction · 0.85

Tested by

no test coverage detected