Documentation
¶
Index ¶
- Constants
- func BuildDependencyTree(params technologies.BuildInfoBomGeneratorParams, ...) (dependencyTree []*clientutils.GraphNode, uniqueDeps []string, ...)
- func NormalizePypiName(name string) string
- func ResolveVersionRange(rangeSpec string, candidates []string) string
- func SetPipVirtualEnvPath() (restoreEnv func() error, err error)
- type CvsBlockedError
- type PinnedRequirement
Constants ¶
View Source
const ( PythonPackageTypeIdentifier = "pypi://" CurationPipMinimumVersion = "23.0.0" PoetryNoInteractionFlag = "--no-interaction" CurationPoetryMinimumVersion = "1.2.0" )
Variables ¶
This section is empty.
Functions ¶
func BuildDependencyTree ¶
func BuildDependencyTree(params technologies.BuildInfoBomGeneratorParams, technology techutils.Technology) (dependencyTree []*clientutils.GraphNode, uniqueDeps []string, downloadUrls map[string]string, err error)
func NormalizePypiName ¶ added in v1.31.0
func ResolveVersionRange ¶ added in v1.31.0
ResolveVersionRange returns the newest version from candidates satisfying rangeSpec. Returns "" if no candidate matches.
func SetPipVirtualEnvPath ¶
Execute virtualenv command: "virtualenv venvdir" / "python3 -m venv venvdir" and set path
Types ¶
type CvsBlockedError ¶ added in v1.31.0
type CvsBlockedError struct {
Packages []PinnedRequirement
Cause error
}
CvsBlockedError is returned when CVS hides a pinned version from the simple index. Packages lists the blockers so the curation-audit command can recover policy details via the metadata-API fallback.
func (*CvsBlockedError) Error ¶ added in v1.31.0
func (e *CvsBlockedError) Error() string
func (*CvsBlockedError) Unwrap ¶ added in v1.31.0
func (e *CvsBlockedError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.