Skip to main content
Version: 2.34 (dev)

go-export-cgo-codegen


pants go-export-cgo-codegen [args]

Export files generated by Cgo.

Backend: pants.backend.experimental.go.debug_goals

Config section: [go-export-cgo-codegen]

Basic options

import_paths

--go-export-cgo-codegen-import-paths="['<str>', '<str>', ...]"
PANTS_GO_EXPORT_CGO_CODEGEN_IMPORT_PATHS
pants.toml
[go-export-cgo-codegen]
import_paths = [
'<str>',
'<str>',
...,
]
default: []

Third-party packages to export Cgo files for, 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) with this option (mirroring go_binary's main_import_path). Defaults to the module's root package. Ignored for first-party and go_third_party_package targets.

Advanced options

None

Deprecated options

None