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

Function isWorkspaceLockNotFound

engine/server/session.go:1784–1786  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

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

Callers 1

readWorkspaceLockStateFunction · 0.70

Calls 2

IsMethod · 0.80
CodeMethod · 0.45

Tested by

no test coverage detected