MCPcopy Index your code
hub / github.com/dagger/dagger / loadWorkspaceFromHost

Method loadWorkspaceFromHost

engine/server/session_workspaces.go:164–166  ·  view source on GitHub ↗

loadWorkspaceFromHost detects and loads the workspace from the client's host filesystem.

(ctx context.Context, client *daggerClient)

Source from the content-addressed store, hash-verified

162
163// loadWorkspaceFromHost detects and loads the workspace from the client's host filesystem.
164func (srv *Server) loadWorkspaceFromHost(ctx context.Context, client *daggerClient) error {
165 return srv.loadWorkspaceFromHostPath(ctx, client, ".")
166}
167
168func (srv *Server) loadWorkspaceFromHostPath(ctx context.Context, client *daggerClient, hostPath string) error {
169 cwd, err := client.engineUtilClient.AbsPath(ctx, hostPath)

Callers 1

ensureWorkspaceLoadedMethod · 0.95

Calls 1

Tested by

no test coverage detected