(ws *core.Workspace)
| 1749 | } |
| 1750 | |
| 1751 | func 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 | |
| 1761 | func readWorkspaceLockState(ctx context.Context, bk interface { |
| 1762 | ReadCallerHostFile(ctx context.Context, path string) ([]byte, error) |
no test coverage detected