[pkg-go] "use of internal package not allowed" running dh-make-golang

Martín Ferrari tincho at tincho.org
Thu Nov 17 00:45:55 UTC 2016


On 17/11/16 01:38, Potter, Tim (HPE Linux Support) wrote:

> It looks like the vendored dependencies that have internal packages, x-net and golang-grpc,
> here are trying to be imported while being built using a longer package name: github.com/docker/containerd/vendor/src/google.golang.org/grpc vs google.golang.org/grpc
> but I don't understand why.

I have suffered this recently while working on a new version of
google-cloud. Some stupid rules that golang wants to enforce..

> My guess is that this was always happening but only now produces an error as upstreams
> are only just starting to add internal packages to their code.
> 
> Any ideas on how to proceed?  I was going to do something awful and rename the internal
> packages but would not be happy with that long-term.

The first thing I'd say is that you should remove the vendoring, both
libraries you mention are already packaged!

-- 
Martín Ferrari (Tincho)



More information about the Pkg-go-maintainers mailing list