Skip to main content
Version: 2.34 (dev)

go-show-package-analysis


pants go-show-package-analysis [args]

Show the package analysis for Go package targets.

Backend: pants.backend.experimental.go.debug_goals

Config section: [go-show-package-analysis]

Basic options

import_paths

--go-show-package-analysis-import-paths="['<str>', '<str>', ...]"
PANTS_GO_SHOW_PACKAGE_ANALYSIS_IMPORT_PATHS
pants.toml
[go-show-package-analysis]
import_paths = [
'<str>',
'<str>',
...,
]
default: []

Third-party packages to analyze by import path, resolved against the go.mod of the go_third_party_module target(s) passed on the command line.

Under [golang].third_party_target_granularity = "module", third-party packages other than a module's root do not have their own target, so pass the module target and select the package(s) to analyze with this option (mirroring go_binary's main_import_path). Ignored for first-party and go_third_party_package targets.

Advanced options

None

Deprecated options

None