Versions in this module Expand all Collapse all v0 v0.14.0 Jul 22, 2026 Changes in this version + const EnvCacheDir + const EnvDevelopmentBypassVersionDispatch + const EnvNoNetwork + const EnvShimActive + const EnvVersionOverride + var ErrDispatched = errors.New(messages.DispatchErrDispatched) + func MaybeExec(args []string, currentVersion string, cwd string, stderr io.Writer, ...) error + func MaybeExecWithSystem(sys System, args []string, currentVersion string, cwd string, exit func(int)) error + func PrefetchVersion(versionInput string, progressOut io.Writer) error + type RealSystem struct + StderrWriter io.Writer + func (RealSystem) Chmod(name string, mode os.FileMode) error + func (RealSystem) CreateTemp(dir, pattern string) (*os.File, error) + func (RealSystem) Environ() []string + func (RealSystem) ExecBinary(path string, args []string, env []string, exit func(int)) error + func (RealSystem) FileSync(f *os.File) error + func (RealSystem) FindAgentLayerRoot(start string) (string, bool, error) + func (RealSystem) Flock(fd int, how int) error + func (RealSystem) Getenv(key string) string + func (RealSystem) HTTPClient() *http.Client + func (RealSystem) PlatformStrings() (string, string, error) + func (RealSystem) ReadFile(name string) ([]byte, error) + func (RealSystem) Rename(oldpath, newpath string) error + func (RealSystem) Sleep(d time.Duration) + func (RealSystem) Stat(name string) (os.FileInfo, error) + func (RealSystem) UserCacheDir() (string, error) + func (r RealSystem) Stderr() io.Writer + type System interface + Chmod func(name string, mode os.FileMode) error + CreateTemp func(dir, pattern string) (*os.File, error) + Environ func() []string + ExecBinary func(path string, args []string, env []string, exit func(int)) error + FileSync func(f *os.File) error + FindAgentLayerRoot func(start string) (string, bool, error) + Flock func(fd int, how int) error + Getenv func(key string) string + HTTPClient func() *http.Client + PlatformStrings func() (string, string, error) + ReadFile func(name string) ([]byte, error) + Rename func(oldpath, newpath string) error + Sleep func(d time.Duration) + Stat func(name string) (os.FileInfo, error) + Stderr func() io.Writer + UserCacheDir func() (string, error)