callerenv

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package callerenv refuses a read of the whole environment of the caller in the test kit, the repository gates, and the TLC runner. Only extensionrepo.NewOwnedRun reads it, as Analyzers in contract.md defines.

At the parent of 09809608, the lifecycle check of the kit passed os.Environ() to a scratch install, which replaced HOME and kept an invalid NCLY_CONFIG. Each other caller filtered its own copy. The rule reads each use of os.Environ or syscall.Environ, a call or a function value, in production files. It skips test files, because a test can read its caller on purpose. A program that starts with no Env inherits the caller too, and the rule cannot see that.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "callerenv",
	Doc:  "refuse os.Environ in the test kit, the repository gates, and the TLC runner outside extensionrepo.NewOwnedRun",
	Run:  run,
}

Analyzer reports os.Environ and syscall.Environ outside the constructor of owned runs.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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