<p dir="auto">by <strong>namegduf</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. Get a copy of the Go source.
2. Set the appropriate environmental variables for compilation and issue 
./all.make

What is the expected output? What do you see instead?

The expected result is a successful compilation with all tests passing. What 
I see is, during tests:

--- FAIL: path.TestWalk
        1. error expected, none found
        node testdata/d/x mark = 2; expected 1
        node testdata/d/y mark = 2; expected 1
        node testdata/d/z mark = 2; expected 1
        node testdata/d/z/u mark = 2; expected 1
        node testdata/d/z/v mark = 2; expected 1
FAIL

What is your $GOOS?  $GOARCH?

Linux/AMD64.

Which revision are you sync'ed to?  (hg log -l 1)

4010:91c471680dc9

Please provide any additional information below.

I was performing this compilation and install as root, in order to install 
system wide into /usr/local. This might be related, but should work.</pre>
<p dir="auto">by <strong>orthopteroid</strong>:</p>
<pre class="notranslate">The string replacer appears to have a problem with single replacements that would happen
at the start of a string:

s := "Hello World"
fmt.Println(strings.NewReplacer("Hello","").Replace(s))
fmt.Println(strings.NewReplacer("World","").Replace(s))

Produces:

Hello World
Hello 

Which is incorrect. I would expect:

 World
Hello 

Whereas, when I add another substitution for replacement:

s := "Hello World"
fmt.Println(strings.NewReplacer("Hello","","l","").Replace(s))
fmt.Println(strings.NewReplacer("World","","l","").Replace(s))

Producing a correct result:

 Word
Heo 

Alternatively, if I perform a single replacement which is not at the start of the string:

s := "Hello World"
fmt.Println(strings.NewReplacer("ello","").Replace(s))
fmt.Println(strings.NewReplacer("orld","").Replace(s))

Produces the correct result:

H World
Hello W

So, the problem appears to be with single substitution when the match is at the start of
the string. I have noticed that strings.NewReplacer tries to handle single substitutions
as a special case... perhaps that code has a problem?

--------------
<a href="http://play.golang.org/p/Hj1V9d8fAj" rel="nofollow">http://play.golang.org/p/Hj1V9d8fAj</a>
go version devel +f4d1cb8d9a91 Thu Sep 19 22:34:33 2013 +1000 linux/386</pre>