Documentation ¶
Index ¶
Constants ¶
View Source
const ( AssetFileName = "project.assets.json" AssetDirName = "obj" )
View Source
const (
PackagesFileName = "packages.config"
)
Variables ¶
This section is empty.
Functions ¶
func CreateAlternativeVersionForms ¶ added in v1.9.36
NuGet allows the version will be with missing or unnecessary zeros This method will return a list of the possible alternative versions "1.0" --> []string{"1.0.0.0", "1.0.0", "1"} "1" --> []string{"1.0.0.0", "1.0.0", "1.0"} "1.2" --> []string{"1.2.0.0", "1.2.0"} "1.22.33" --> []string{"1.22.33.0"} "1.22.33.44" --> []string{} "1.0.2" --> []string{"1.0.2.0"}
Types ¶
type Extractor ¶
type Extractor interface { // Check whether the extractor is compatible with the current dependency resolution method IsCompatible(projectName, dependenciesSource string, log utils.Log) bool // Get all the dependencies for the project AllDependencies(log utils.Log) (map[string]*buildinfo.Dependency, error) // Get all the root dependencies of the project DirectDependencies() ([]string, error) // Dependencies relations map ChildrenMap() (map[string][]string, error) // contains filtered or unexported methods }
The extractor responsible to calculate the project dependencies.
Click to show internal directories.
Click to hide internal directories.