cmd/go: build fails when %go_import is used in SWIG interfaces #36636
Labels
Milestone
Comments
Files to reproduce this issue: dummy_test.zip I believe this can be explained by go/src/cmd/go/internal/load/pkg.go Line 1657 in 98d2717 A workaround for this is to add |
If someone would like to do that TODO, please send a CL. |
1 similar comment
If someone would like to do that TODO, please send a CL. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have created an empty package and a SWIG interface for it containing only
%go_import(_ "time")
.What did you expect to see?
A successful build (by doing
go build
).What did you see instead?
The build failed with the following error:
/tmp/go-build220377569/b001/_dummy_swig.go:40:8: can't find import: "time"
The text was updated successfully, but these errors were encountered: