manifests

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package manifests is the single source of truth for the dependency-manifest file names/patterns the SDK understands (package.json, go.mod, pom.xml, …).

It is a leaf package: it imports nothing internal, so both pkg/dependencies (which parses these files) and pkg/filter (which can preserve them while pruning everything else) can depend on it without a cycle. The dependency parser's registered files are kept in sync with Patterns by a drift-guard test (see pkg/dependencies).

Index

Constants

View Source
const (
	RequirementsTxt = "requirements.txt"
	PyProjectToml   = "pyproject.toml"
	PomXML          = "pom.xml"
	BuildGradle     = "build.gradle"
	PackageJSON     = "package.json"
	PackageLockJSON = "package-lock.json"
	YarnLock        = "yarn.lock"
	Gemfile         = "Gemfile"
	GemfileLock     = "Gemfile.lock"
	GoMod           = "go.mod"
	GoSum           = "go.sum"
	CsprojGlob      = "*.csproj"
	PackagesConfig  = "packages.config"
)

Manifest file identifiers. Exact base names, plus glob patterns matched with filepath.Match (currently only "*.csproj"). Keep this list in sync with the dependency parser registrations in pkg/dependencies.

Variables

Patterns is every manifest identifier (exact names and glob patterns).

Functions

func Is

func Is(path string) bool

Is reports whether path's base name is a known dependency manifest. Matching is on the base name only, so nested manifests (e.g. "sub/pkg/package.json") are recognised.

Types

This section is empty.

Jump to

Keyboard shortcuts

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