I have installed go 1.11 using the snap package as described here: https://github.com/golang/go/wiki/Ubuntu
# This will give you the latest version of go
$ sudo snap install --classic go
Things in general work well, however, when I tried to compile a project that uses cgo
, I get the following error:
/snap/go/2635/bin/go test -c -i -o /tmp/___Test_GetVersion_in_tests_go tests_go #gosetup
go test runtime/cgo: open /snap/go/2635/pkg/linux_amd64/runtime/cgo.a: read-only file system
What could be happening? Is this a known issue in the snap installation?