<pre class="notranslate">This is how I broke our build.

% pwd
/home/rog/src/go/src/local/gobug
% ls
% cat &gt; foo.go
package foo
var X = 0
^D
% cat &gt; bar.go
package foo
var Y = 0
^D
% cat &gt; foo_test.go
package foo_test
import (
    "testing"
    foo "local/gobug"
)
func TestX(t *testing.T){
    _ = foo.X
}
^D
% go test
PASS
ok      local/gobug 0.011s
% go install
% rm foo.go      # as it happens, i actually moved it elsewhere.
% go build
% go install
% go test
PASS
ok      local/gobug 0.011s
# everything looks just fine, so i pushed to trunk here, breaking
# the build.
% touch *.go
% go test
# local/gobug_test
./foo_test.go:7: undefined: foo.X
FAIL    local/gobug [build failed]
% 

I wonder if the go tool should look at the mtime of the
directory as well as the source files when determining
whether to rebuild.</pre>
<pre class="notranslate">What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. hg pull ;hg update;hg id

gobuild@raspberrypi:~/go/src$ hg id
5e3661048f2e+ tip
gobuild@raspberrypi:~/go/src$

2. check GOARM setting.
gobuild@raspberrypi:~/go/src$ echo $GOARM

gobuild@raspberrypi:~/go/src$

3. cd src;./all.bash

What is the expected output?

No errors.

What do you see instead?

two test errors, fmt and eoncoding/gob(this is logged in another ticket).

ok      flag    0.120s
--- FAIL: TestNaN (0.00 seconds)
        scan_test.go:459: didn't get NaNs scanning "nan nan nan": got NaN +Inf NaN
        scan_test.go:459: didn't get NaNs scanning "NAN NAN NAN": got NaN +Inf NaN
        scan_test.go:459: didn't get NaNs scanning "NaN NaN NaN": got NaN +Inf NaN
FAIL
FAIL    fmt     0.876s
ok      go/ast  0.171s



Which operating system are you using?

gobuild@raspberrypi:~/go/src$ uname -a
Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux
gobuild@raspberrypi:~/go/src$

Which version are you using?  (run 'go version')

gobuild@raspberrypi:~/go/src$ go version
go version weekly.2012-03-27 +5e3661048f2e
gobuild@raspberrypi:~/go/src$


Please provide any addgobuild@raspberrypi:~/go/src$ hg id
5e3661048f2e+ tip
gobuild@raspberrypi:~/go/src$
itional information below.</pre>