Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configuration File Parameter

Description and Expected Behavior

If True

If False

Default

Command Line Parameter Available?

go.resolveDependencies 

Whether to resolve Go dependencies.

Will resolve Go projects.

Will not resolve Go projects.

True
(except for when resolveAllDependencies=false

No

go.collectDependenciesAtRuntime 

Whether to collect Go dependencies at runtime (similar to the 'runPreStep' parameter for the other languages).

When set to True, refer here for an explanation.

Will run the command relevant to the select dependency manager.

Will not run the command

False

No

go.dependencyManager 

Determines the Go dependency manager for use when scanning a Go project. Valid values are:

  • dep

  • godep

  • vndr

  • gogradle

  • govendor

  • gopm

  • glide

  • vgo

  • modules

If left empty, the Unified Agent will first try to resolve the dependencies using the first package manager from this list. If it fails, it continues and tries the next one until it succeeds.

N/A

N/A

No default (empty)

No

go.ignoreSourceFiles 

When using the dependency resolver, it will only include package dependencies, not source files.

NOTE: Only relevant when fileSystemScan is true.

Will ignore .go. files from scan.

Will not ignore .go. files from the scan.

False

No

go.glide.ignoreTestPackages 

When using the Glide resolver, whether to ignore test packages defined in the 'testImport' section of the 'glide.yaml' file.

Ignore test packages from the scan.

Does not ignore the mentioned test packages from the scan.

True

No

go.gogradle.enableTaskAlias 

Enables/disables task aliasing for gogradle. 

Set to True when using gogradle dependency manager and the gradle argument (in 'gradle.properties') includes 'gograld.alias=true'. 

Enables task aliasing for gogradle.

Disables task aliasing for gogradle.

False

No

Modules

Configuration File Parameter

Description and Expected Behavior

If True

If False

Default

Command Line Parameter Available?

go.modules.resolveDependencies

Whether to resolve Go Module dependencies.

NOTE: To do so, you must also set go.resolveDependencies to false.

Resolves Go Modules dependencies

Will not resolve Go Module dependencies

False

No

go.modules.ignoreSourceFiles

When using the dependency resolver, it will only include pom.xml dependencies, not source files and packages.

NOTE: Only relevant when fileSystemScan is true.

Will ignore files from scan, those which have extensions such as:".java", ".class","pom.xml".

Will not ignore the mentioned file extensions.

True

No

go.modules.removeDuplicateDependencies

Whether to remove duplicate dependencies during Go Module dependency resolution.

Removes duplicate dependencies during Go Module dependency resolution.

Includes duplicate dependencies during Go Module dependency resolution.

True

No

go.modules.includeTestDependencies

Whether to scan Go Module project dev dependencies..

Scans Go Module project dev dependencies.

Will not scan Go Module project dev dependencies.

False

No

Bazel

Configuration File Parameter

Description and Expected Behavior

If True

If False

Default

Command Line Parameter Available?

bazel.resolveDependencies

Whether to resolve Bazel dependencies

Resolves Bazel dependencies

Will not resolve Bazel dependencies

True

No

bazel.runPreStep

Indicates whether to perform a pre-step - install dependencies in case they are not installed.

Prior to scanning, the Unified Agent will run the Bazel build and Bazel sync.

Prior to scanning, the Unified Agent will not run the Bazel build and Bazel sync.

False

No

...