(err error)
| 1782 | } |
| 1783 | |
| 1784 | func isWorkspaceLockNotFound(err error) bool { |
| 1785 | return errors.Is(err, os.ErrNotExist) || status.Code(err) == codes.NotFound |
| 1786 | } |
| 1787 | |
| 1788 | func exportWorkspaceLockToHost(ctx context.Context, bk *engineutil.Client, ws *core.Workspace, lock *workspace.Lock) error { |
| 1789 | lockBytes, err := lock.Marshal() |
no test coverage detected