title: golang snap installation: cgo.a: read-only file system
body: <p>I have installed go 1.11 using the snap package as described here: <a href="https://github.com/golang/go/wiki/Ubuntu" rel="nofollow noreferrer">https://github.com/golang/go/wiki/Ubuntu</a></p>
  
  <pre><code># This will give you the latest version of go
  $ sudo snap install --classic go
  </code></pre>
  
  <p>Things in general work well, however, when I tried to compile a project that uses <code>cgo</code>, I get the following error:</p>
  
  <pre><code>/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
  </code></pre>
  
  <p>What could be happening? Is this a known issue in the snap installation?</p>