Include host directory name in workspace GuestPath

This commit is contained in:
Joshua Bell 2026-01-27 01:39:19 -06:00
parent 19f67670ab
commit 37770e741d

View file

@ -102,11 +102,12 @@ func (r *Registry) Register(hostPath string) mo.Result[*Workspace] {
}
hash := Hash(absPath)
dirName := filepath.Base(absPath)
ws := Workspace{
HostPath: absPath,
Hash: hash,
MountTag: fmt.Sprintf("ws_%s", hash),
GuestPath: fmt.Sprintf("/workspace/%s", hash),
GuestPath: fmt.Sprintf("/workspace/%s-%s", hash, dirName),
}
r.workspaces[absPath] = ws