runpath

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package runpath carries per-run filesystem paths on the context: the single cache root and any explicit input dir for --no-fetch replays. These are runtime values set by command wiring, not env vars, so they live on ctx rather than on environment.Config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuditCacheDir

func GetAuditCacheDir(ctx context.Context) string

GetAuditCacheDir is where the audit-cache stores per-package raw violations. The "audit-v2" subdir is a deliberate break from the legacy "audit" subdir (which held graded SARIF runs) so old entries are silently orphaned rather than mis-decoded.

func GetCacheDir

func GetCacheDir(ctx context.Context) string

GetCacheDir returns the cache root.

func GetChecksOutputPath

func GetChecksOutputPath(ctx context.Context) string

func GetCloneCacheDir

func GetCloneCacheDir(ctx context.Context) string

GetCloneCacheDir is where per-package unpacked git working trees live.

func GetDAGCacheDir

func GetDAGCacheDir(ctx context.Context) string

GetDAGCacheDir is where DAG node yml outputs are written and read back from during --no-fetch replays.

func GetInputDir

func GetInputDir(ctx context.Context) string

GetInputDir returns the explicit --input-dir if set, otherwise falls back to the DAG cache. The fallback lets a single-run flow read its own ymls without the caller having to set --input-dir.

func GetNetworkCacheDir

func GetNetworkCacheDir(ctx context.Context) string

GetNetworkCacheDir is the root for the cache backend's filesystem storage: compressed clone tarballs, registry JSON, HTTP response cache.

func GetOutputDir deprecated

func GetOutputDir(ctx context.Context) string

GetOutputDir is a deprecated alias for GetCacheDir.

Deprecated: use GetCacheDir.

func SetCacheDir

func SetCacheDir(ctx context.Context, dir string) context.Context

SetCacheDir stores the single cache root. All cache subdirs (dag, clones, audit, network) are computed relative to this root.

func SetChecksOutputPath

func SetChecksOutputPath(ctx context.Context, path string) context.Context

func SetInputDir

func SetInputDir(ctx context.Context, dir string) context.Context

func SetOutputDir deprecated

func SetOutputDir(ctx context.Context, dir string) context.Context

SetOutputDir is a deprecated alias for SetCacheDir. Kept so the deprecated --output-dir flag keeps working while callers migrate.

Deprecated: use SetCacheDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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