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 ¶
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 ¶
var Patterns = []string{ RequirementsTxt, PyProjectToml, PomXML, BuildGradle, PackageJSON, PackageLockJSON, YarnLock, Gemfile, GemfileLock, GoMod, GoSum, CsprojGlob, PackagesConfig, }
Patterns is every manifest identifier (exact names and glob patterns).
Functions ¶
Types ¶
This section is empty.