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

Method version

provisioner/terraform/executor.go:179–181  ·  view source on GitHub ↗

version doesn't need the lock because it doesn't read or write to any state.

(ctx context.Context)

Source from the content-addressed store, hash-verified

177
178// version doesn't need the lock because it doesn't read or write to any state.
179func (e *executor) version(ctx context.Context) (*version.Version, error) {
180 return versionFromBinaryPath(ctx, e.binaryPath)
181}
182
183func versionFromBinaryPath(ctx context.Context, binaryPath string) (*version.Version, error) {
184 if ctx.Err() != nil {

Callers 3

checkMinVersionMethod · 0.95
initMethod · 0.95
graphMethod · 0.95

Calls 1

versionFromBinaryPathFunction · 0.85

Tested by

no test coverage detected