manifests

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 2 Imported by: 1 module, 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 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