sandboxcache

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sandboxcache centralizes host paths shared by sandbox startup and sandboxed tool command preparation.

Index

Constants

View Source
const GoCacheHomeSubdir = "sandbox-go-cache"

Variables

This section is empty.

Functions

func GoHostCacheDir

func GoHostCacheDir() (string, error)

func GoHostCacheDirForWorkspace

func GoHostCacheDirForWorkspace(_ string) (string, error)

GoHostCacheDirForWorkspace returns the canonical sandbox cache mount. It is intentionally independent of both HOME and the particular checkout path: Podman is created for the repository root while commands may later run from a managed worktree, and both sides must still name the identical mount.

func HostGoScratchDir

func HostGoScratchDir(workspace string) (string, error)

func HostShellScratchDir

func HostShellScratchDir(workspace string) (string, error)

func PathWithinWorkspace

func PathWithinWorkspace(path, root string) bool

PathWithinWorkspace reports whether path resolves to root or one of its descendants. It is shared by host command environment policy and cache placement so both make the same decision for an inherited workspace HOME.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL