title: How can I see the internal compile commands which fail in a "go get" installation?
body: <p>I am pulling and installing a package with dependencies, and a compilation fails, in this case not finding a file, <code>magic.h</code>.   How do I see what the compilation commands and flags were? The <code>-v</code> option does not help. (I do NOT want ideas about where to get magic.h from, this is just an example.)</p>
  
  <pre class="lang-bash prettyprint-override"><code>$ go get -u github.com/presbrey/magicmime
  # github.com/presbrey/magicmime
  ../../../src/github.com/presbrey/magicmime/magicmime.go:20:11: fatal error:   'magic.h' file not found
  #include &lt;magic.h&gt;
  </code></pre>
  
  <p>How can I find, for example, where it was looking for include files, what source <em>exactly</em> it was compiling? (In this case the source file I see in <code>$GO_PATH/src</code> has that <code>#include</code> commented out, and a <code>/usr/local/include/match.h</code> exists anyway.)</p>