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

Potter, Tim (HPE Linux Support) timothy.potter at hpe.com
Thu Nov 17 00:54:03 UTC 2016


On 17 Nov 2016, at 11:45 AM, Martín Ferrari <tincho at tincho.org> wrote:
> 
> 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..

Yes, that's the other package I've found too.

>> 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!

Indeed!  But this is happening during the "go get" phase of dh-make-golang (I think) before
it strips out the code from the Godeps and vendor directories.

Man, what a pain!


Tim.

> 
> --
> Martín Ferrari (Tincho)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161117/86ae2f12/attachment.sig>


More information about the Pkg-go-maintainers mailing list