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: running failed compilation twice #2891

Closed
rsc opened this issue Feb 6, 2012 · 2 comments
Closed

cmd/go: running failed compilation twice #2891

rsc opened this issue Feb 6, 2012 · 2 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Feb 6, 2012

no idea why

$ go test
# regexp
./regexp.go:498: cannot use src (type []byte) as type string in function argument
./regexp.go:499: cannot use string(b) (type string) as type []byte in return argument
./regexp.go:509: cannot use src (type []byte) as type string in function argument
# regexp
./regexp.go:498: cannot use src (type []byte) as type string in function argument
./regexp.go:499: cannot use string(b) (type string) as type []byte in return argument
./regexp.go:509: cannot use src (type []byte) as type string in function argument
FAIL    regexp [build failed]
$
@gopherbot
Copy link

Comment 1 by robert.hencke:

I think it has something to do with regexp being imported twice in Package.imports for
pmain.  One version is the version with the _test files, and one is the manual import
with "testing" and "regexp".

@rsc
Copy link
Contributor Author

rsc commented Mar 7, 2012

Comment 3:

Yes, that's it.  There are two package regexp here: the base one and the one being built
for the test.  Both have the same import path, in some weird sense, and both are failing
to build.

Status changed to WorkingAsIntended.

@rsc rsc self-assigned this Mar 7, 2012
@rsc rsc added this to the Go1 milestone Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants