Skip to content

Possible Go dependency inference issue related to cgo #20954

Open
@jgranstrom

Description

@jgranstrom

Describe the bug
Ran into a dependency (github.com/googleapis/enterprise-certificate-proxy) that seem to break Go dependency inference when cgo is disabled.

See minimal repro in https://github.com/jgranstrom/pants-cgo-repro

pants dependencies :: leads to

AssertionError: The package `github.com/googleapis/enterprise-certificate-proxy/cshared` was not downloaded, but Pants tried using it. This should not happen. Please open an issue at https://github.com/pantsbuild/pants/issues/new/choose with this error message.

pants --golang-cgo-enabled dependencies :: works fine. Seems strange that cgo would have to be enabled to resolve the dependencies.

Pants version
2.20.1

OS
MacOS and Linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions