<p dir="auto">by <strong>gmacr31</strong>:</p>
<pre class="notranslate">Try:
go get -u github.com/moovweb/gokogiri

What is the expected output?
Nothing, it should fetch my desired go pkg

What do you see instead?
Error message:
# github.com/moovweb/gokogiri/xpath
clang: error: argument unused during compilation: '-fno-eliminate-unused-debug-types'

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
OS X Mavericks (10.9)

Which version are you using?  (run 'go version')
go version go1.2rc2 darwin/amd64

Please provide any additional information below.
I have gokogiri installed already, however, I get the same error when I compile any code
with that dependency.</pre>
<p dir="auto">by <strong>adamh.zero</strong>:</p>
<pre class="notranslate">After upgrading to go 1.3, I decided to try the new `go build -i` option to cut down on
my build times.

I removed everything from `$GOPATH/pkg` to simulate a clean build and timed a clean
build (16 seconds). Then I ran `go build -i -v` (visual to make sure it's doing what I
think it's doing) and re-timed a `go build`, which still came out to about 16 seconds.
No significant improvement, despite most of the build time being spent on 2 external
packages.

I ran for loop that does what `go build -i` should do, then timed another build... build
complete in .3 seconds. (sidenote: why does `go build -v` output to stderr??)

Am I misunderstanding what `go build -i` does? From the release notes: "The go
build subcommand supports a new -i option to install dependencies of the specified
target, but not the target itself."

Running on Mac OS 10.9.3, go 1.3.

Console output of what is described above:

[22:03:50] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z go version
go version go1.3 darwin/amd64
 
[22:04:36] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z rm -rf $GOPATH/pkg/*
zsh: sure you want to delete all the files in /Users/atg/.go/pkg [yn]? y
 
[22:04:54] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z time go build -v
bitbucket.org/zombiezen/math3/vec32
github.com/adam000/Go-SDL2/sdl/keys
github.com/go-gl/gl
bitbucket.org/zombiezen/math3/mat32
github.com/adam000/Go-SDL2/sdl
github.com/adam000/shader
github.com/adam000/terminus
go build -v  16.19s user 2.08s system 115% cpu 15.874 total
 
[22:05:25] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z ls $GOPATH/pkg
 
[22:05:52] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z go build -i -v
bitbucket.org/zombiezen/math3/vec32
github.com/adam000/Go-SDL2/sdl/keys
github.com/go-gl/gl
bitbucket.org/zombiezen/math3/mat32
github.com/adam000/Go-SDL2/sdl
github.com/adam000/shader
github.com/adam000/terminus
 
[22:06:34] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z ls $GOPATH/pkg
 
[22:06:37] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z time go build -v
bitbucket.org/zombiezen/math3/vec32
github.com/adam000/Go-SDL2/sdl/keys
github.com/go-gl/gl
bitbucket.org/zombiezen/math3/mat32
github.com/adam000/Go-SDL2/sdl
github.com/adam000/shader
github.com/adam000/terminus
go build -v  16.24s user 2.08s system 115% cpu 15.886 total
 
[22:07:04] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z for SRC_PATH in `go build -v 2&gt;&amp;1`; do
for&gt; cd $GOPATH/src/$SRC_PATH
for&gt; go install
for&gt; done
 
[22:08:31] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z ls $GOPATH/pkg
darwin_amd64
 
[22:08:41] (Masyaf) ~/.go/src/github.com/adam000/terminus
Z time go build -v
github.com/adam000/terminus
go build -v  0.25s user 0.06s system 99% cpu 0.311 total</pre>