You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cd$HOME&&$HOME/go-master/bin/go version
go version devel +cf2c2ea89d Mon Jun 4 17:32:17 2018 +0000 linux/amd64
~ $ GOARCH=386 $HOME/go-master/bin/go run main.go
can't find import: "crypto/tls"
What operating system and processor architecture are you using (go env)?
I believe that this is working as expected. The docs for importer.Default say that it returns an Importer for the compiler that built the binary, which in this case is "gc". The docs for Importer.For say that for "gc" it returns an importer that works on installed packages. You presumably haven't installed the "crypto/tls" package for 386.
You should either use importer.For("source") or run GOARCH=386 go install crypto/tls.
Closing because I don't think there is anything to fix. Please comment if you disagree.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. Tried it with cf2c2ea.
What operating system and processor architecture are you using (
go env
)?What did you do?
$ GOARCH=386 go run main.go can't find import: "crypto/tls"
What did you expect to see?
No error.
What did you see instead?
$ GOARCH=386 go run main.go can't find import: "crypto/tls"
The text was updated successfully, but these errors were encountered: