golang/go
View on GitHubcmd/go: build fails when %go_import is used in SWIG interfaces
Open
#36,636 opened on Jan 18, 2020
GoCommandNeedsInvestigationhelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
What version of Go are you using (go version)?
What operating system and processor architecture are you using (go env)?
What 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"