License Type | SaaS & On-Premise |
Agent Mode | Assess & Protect |
Main Product Category | Go Agent |
Sub Category |
The contrast-go build tool supports some runtime flags to control how the application is instrumented as it is built.
These build time flags are supported:
contrast-go [flags] build
-
-v increases the level of logging when building application.
-
-vv includes all logging when building the application. This configuration option is very verbose.
-
-d provides a dry-run of the rewriting for workflow validation.
-
-nodeps excludes dependencies from rewriting; only instrument packages within the target package's module.
-
-version displays the current version of the Contrast agent.
-
-agentDir string location of agent package on disk (default “/Users/ehdens/contrast/i13n”).
-
-dataflow enable dataflow rewrites (assess) (default true).
-
-ecu enable ecu rewrites (default true).
-
-noLines disable line comment directives (default true).
-
-save save rewritten source files after compilation.
-
-skip skip rewrite and rebuild, use with -wd to specify the location to build from.
Note
Use -h to get help.