toolchain

package
v1.5.166 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package toolchain resolves explicitly requested execution profiles. A Plan describes capabilities; it grants none. Hosts must authorize and bind it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoPaths

type GoPaths struct{ GOROOT, GOMODCACHE, GOCACHE, GOENV string }

type Plan

type Plan struct {
	Name       string   `json:"name"`
	Executable string   `json:"executable"`
	GoRoot     string   `json:"goroot"`
	Binding    string   `json:"binding"`
	ReadDirs   []string `json:"read_dirs"`
	WriteDirs  []string `json:"write_dirs"`
	ReadFiles  []string `json:"read_files,omitempty"`
}

Plan is locally resolved evidence, not a permission grant.

func BuildGo

func BuildGo(name, executable, identity string, paths GoPaths) (Plan, error)

BuildGo is the deterministic manifest compiler, independent of discovery.

func Resolve

func Resolve(ctx context.Context, cwd, name string) (Plan, error)

Resolve queries only a real system-installed cmd/go, outside the project. No shell, module hooks or toolchain download runs during this probe.

Jump to

Keyboard shortcuts

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