MCPcopy Create free account
hub / github.com/dagger/dagger / workspaceLockPath

Function workspaceLockPath

engine/server/session.go:1751–1759  ·  view source on GitHub ↗
(ws *core.Workspace)

Source from the content-addressed store, hash-verified

1749}
1750
1751func workspaceLockPath(ws *core.Workspace) (string, error) {
1752 if ws == nil {
1753 return "", fmt.Errorf("workspace is required")
1754 }
1755 if ws.HostPath() == "" {
1756 return "", fmt.Errorf("workspace has no host path")
1757 }
1758 return filepath.Join(ws.HostPath(), ws.Path, workspace.LockDirName, workspace.LockFileName), nil
1759}
1760
1761func readWorkspaceLockState(ctx context.Context, bk interface {
1762 ReadCallerHostFile(ctx context.Context, path string) ([]byte, error)

Callers 3

readWorkspaceLockStateFunction · 0.85

Calls 1

HostPathMethod · 0.80

Tested by

no test coverage detected