-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go:binary-only-package not working in go 1.10 #24318
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
/cc @ianlancetaylor |
This is likely due to a documented change in binary packages in 1.10. They must now explicitly list their imports. See the last paragraph of https://golang.org/doc/go1.10#build . |
@ianlancetaylor Thanks. Is there any way that I can manualy export imports from .a without source codes? |
I believe it should be possible to do that using the go/importer package. I don't think there is anything for us to change here, so closing this issue. |
Hello, I know the issue is closed but haven't figured out how to fix the issue and be able to use BOP packages. The new docs say:
Source: https://golang.org/doc/go1.10#build However, personally that does not seem to convey exactly what actions the developer should take, it points you to https://golang.org/cmd/go/#hdr-File_types, however again I feel that it just mentions the following:
But no hint towards what to make of Any example of how to use it in 1.10 would be greatly appreciated!, thanks!, sorry for the trouble |
Thanks for the note. This issue is closed, and we don't use issues for questions. You will get better answers using a forum. Please see https://golang.org/wiki/Questions . Thanks. |
Thank you for the quick reply, I figured out what it meant from this issue that you encountered: #23473 |
What version of Go are you using (
go version
)?go version go1.10 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
test-binary-package/main.go
test-binary-package/myframework/hello.go
test-binary-package/myname/myname.go
I run
go install
intest-binary-package/myframework
andtest-binary-package/myname
dir then replace the content code with:and
Then
go build
the test program.What did you expect to see?
The test code works well with go1.9:
What did you see instead?
Error with go1.10:
It seems there miss packagefile define for the nested package
test-binary-package/myname
.The text was updated successfully, but these errors were encountered: