Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: internal error when importing a vendored package #17119

Closed
utrack opened this issue Sep 15, 2016 · 1 comment
Closed

cmd/go: internal error when importing a vendored package #17119

utrack opened this issue Sep 15, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@utrack
Copy link

utrack commented Sep 15, 2016

What version of Go are you using (go version)?

go version go1.7.1 linux/amd64

What operating system and processor architecture are you using (go env)?

amd64, Arch Linux

What did you do?

Mistaken and imported a package from vendor and ran go build

What did you expect to see?

package poc
        imports testpack2
        imports poc/vendor/testpack: use of vendored package not allowed

What did you see instead?

internal error: duplicate loads of poc/vendor/testpack

Extended info

PoC: https://github.com/utrack/golang-poc-17119

It seems that if main imports packages A,B and package B imports vendor/A then the compiler or linker fails with non-descriptive error. See minimal PoC @ repo provided; copy it to $GOPATH/src and try to go build poc.

@quentinmit quentinmit added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 3, 2016
@quentinmit quentinmit added this to the Go1.8 milestone Oct 3, 2016
@rsc rsc changed the title build: internal error when importing a vendored package cmd/go: internal error when importing a vendored package Oct 21, 2016
@gopherbot
Copy link

CL https://golang.org/cl/31812 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants