[pkg-go] Bug#997133: More information in the ubuntu bugtracker

Lucas Kanashiro kanashiro at debian.org
Mon Nov 8 20:35:12 GMT 2021


I updated the git repository with the upstream patch that I mentioned in 
the Ubuntu bug, the FTBFS is fixed with it but autopkgtest is still 
failing. As Reinhard mentioned in the Ubuntu bug, autopgktest seems to 
always fail in Debian for some years, so I do not know if this would be 
a blocker. The error that I am getting is the following:

Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Error parsing file: 
/tmp/autopkgtest.4L5Gnh/autopkgtest_tmp/_build/src/github.com/hashicorp/consul/agent/connect/ca/provider_vault.go:18:11: 
could not import github.com/hashicorp/vault/api (invalid package name: "")
Unable to find Provider in any go files under this path
src/github.com/hashicorp/consul/agent/connect/ca/provider.go:10: running 
"mockery": exit status 1

This is happening because agent/connect/ca/provider_vault.go imports 
github.com/hashicorp/vault/api which was excluded as part of the vendor 
code but it is not available in Debian yet. We could also try to disable 
this agent for now to avoid shipping code without the needed dependencies.

-- 
Lucas Kanashiro



More information about the Pkg-go-maintainers mailing list