depgraph

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FlagFailFast                      = "fail-fast"
	FlagAllProjects                   = "all-projects"
	FlagDev                           = "dev"
	FlagExclude                       = "exclude"
	FlagFile                          = "file"
	FlagDetectionDepth                = "detection-depth"
	FlagPruneRepeatedSubdependencies  = "prune-repeated-subdependencies"
	FlagMavenAggregateProject         = "maven-aggregate-project"
	FlagMavenSkipWrapper              = "maven-skip-wrapper" //nolint:gosec // Not a credential, this is a CLI flag name
	FlagScanUnmanaged                 = "scan-unmanaged"
	FlagScanAllUnmanaged              = "scan-all-unmanaged"
	FlagSubProject                    = "sub-project"
	FlagGradleSubProject              = "gradle-sub-project"
	FlagGradleNormalizeDeps           = "gradle-normalize-deps"
	FlagAllSubProjects                = "all-sub-projects"
	FlagConfigurationMatching         = "configuration-matching"
	FlagConfigurationAttributes       = "configuration-attributes"
	FlagInitScript                    = "init-script"
	FlagYarnWorkspaces                = "yarn-workspaces"
	FlagPythonCommand                 = "command"
	FlagPythonSkipUnresolved          = "skip-unresolved"
	FlagPythonPackageManager          = "package-manager"
	FlagStrictOutOfSync               = "strict-out-of-sync"
	FlagNugetAssetsProjectName        = "assets-project-name"
	FlagNugetPkgsFolder               = "packages-folder"
	FlagUnmanagedMaxDepth             = "max-depth"
	FlagIncludeProvenance             = "include-provenance"
	FlagUseSBOMResolution             = "use-sbom-resolution"
	FlagPrintEffectiveGraph           = "effective-graph"
	FlagPrintEffectiveGraphWithErrors = "effective-graph-with-errors"
	FlagDotnetRuntimeResolution       = "dotnet-runtime-resolution"
	FlagDotnetTargetFramework         = "dotnet-target-framework"
	// TODO: rename this flag to remove the uv-specific reference.
	FlagUvWorkspacePackages = "internal-uv-workspace-packages"
	FlagForceSingleGraph    = "force-single-graph"
)

Variables

View Source
var (
	// MetaKeyNormalisedTargetFile is the metadata key for the normalised target file.
	MetaKeyNormalisedTargetFile = "normalisedTargetFile"
	// MetaKeyTargetFileFromPlugin is the metadata key for the target file from plugin.
	MetaKeyTargetFileFromPlugin = "targetFileFromPlugin"
	// MetaKeyTarget is the metadata key for the target.
	MetaKeyTarget = "target"
)
View Source
var (
	// WorkflowID is the unique identifier for this workflow. It should be used as
	// a reference everywhere.
	WorkflowID workflow.Identifier = workflow.NewWorkflowIdentifier(workflowIDStr)

	// DataTypeID is the unique identifier for the data type that is being returned
	// from this workflow.
	DataTypeID workflow.Identifier = workflow.NewTypeIdentifier(WorkflowID, workflowIDStr)
)

Functions

func ExtractLegacyCLIError added in v0.23.0

func ExtractLegacyCLIError(input error, data []workflow.Data) error

extractLegacyCLIError extracts the error message from the legacy cli if possible.

func Init

func Init(engine workflow.Engine) error

Init initializes the DepGraph workflow.

Types

type LegacyCLIJSONError

type LegacyCLIJSONError struct {
	Ok       bool   `json:"ok"`
	ErrorMsg string `json:"error"`
	Path     string `json:"path"`
	// contains filtered or unexported fields
}

LegacyCLIJSONError is the error type returned by the legacy cli.

func (*LegacyCLIJSONError) Error

func (e *LegacyCLIJSONError) Error() string

Error returns the LegacyCliJsonError error message.

func (*LegacyCLIJSONError) Unwrap

func (e *LegacyCLIJSONError) Unwrap() error

type ResolutionHandlerFunc

type ResolutionHandlerFunc func(ctx workflow.InvocationContext, config configuration.Configuration, logger *zerolog.Logger) ([]workflow.Data, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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