<#20954 Possible Go dependency inference issue rel...
# github-notifications
c
#20954 Possible Go dependency inference issue related to cgo Issue created by 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
Copy code
AssertionError: The package `<http://github.com/googleapis/enterprise-certificate-proxy/cshared|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 pantsbuild/pants