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

Function localWorkspaceAddress

engine/server/session_workspaces.go:613–619  ·  view source on GitHub ↗
(root, workspacePath string)

Source from the content-addressed store, hash-verified

611}
612
613func localWorkspaceAddress(root, workspacePath string) string {
614 workspaceDir := filepath.Join(root, workspacePath)
615 return (&url.URL{
616 Scheme: "file",
617 Path: filepath.ToSlash(workspaceDir),
618 }).String()
619}
620
621func remoteWorkspaceAddress(cloneRef, workspacePath, version string) string {
622 return core.GitRefString(cloneRef, workspacePath, version)

Callers 2

buildCoreWorkspaceMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by 1