Table of Contents |
---|
...
A specific resolver for detecting Go Modules dependencies.
A generic resolver for detecting dependencies defined by the other Go package managers: Dep, Godep, Vndr, Gogradle, Govendor, Gopm, Glide.
NOTE: Before you begin, make sure that the relevant package managers are installed. For details, see https://whitesource.atlassian.net/wiki/spaces/WD/pages/1140852201/Getting+Started+with+the+Unified+Agent#Prerequisites .
Configuration
Both Go resolvers expose different parameter sets to control them:
...
Code Block |
---|
go.resolveDependencies=true go.collectDependenciesAtRuntime=false go.dependencyManager=godep |
Glide
Glide dependencies are detected using the generic Go resolver, which is based on the glide.yaml
file.
...
The generic Go resolver provides support for a hierarchy tree for the following packages: Glide, Gopm, Godep, Dep, Govendor and Vndr.
For Gogradle, the direct and transitive dependencies are displayed in a flat structure.
In order to support the retrieval of a project's full hierarchy tree, one of the following requirements must be met:
The dependency file and
vendor
folder are available in the project.The
go.collectDependenciesAtRuntime
parameter is set to true and the relevant dependency manager is installed.