go-plus icon indicating copy to clipboard operation
go-plus copied to clipboard

Tests fail on Go develoment builds.

Open hansrodtang opened this issue 12 years ago • 6 comments

Probably not the most serious of issues, but I thought I should comment on it.

The parsing in goexecutable.coffee fetches the name from the version string, which in development builds does not contain the word "go", making the tests fail.

The test failing is this one here: goexecutable-spec.coffee

Getting go name from components[0] could solve line 38, not sure how to handle version testing, or if it is even needed.

hansrodtang avatar Nov 16 '14 06:11 hansrodtang

Yeah, it's probably not even critical to have those assertions. What is the value for name in a development build?

joefitzgerald avatar Nov 16 '14 18:11 joefitzgerald

The entire output of go version:

go version devel +723ca3789b88 Sat Nov 15 13:27:05 2014 +1100 darwin/amd64

hansrodtang avatar Nov 16 '14 19:11 hansrodtang

Release candidates and betas seem to have information in go version that would make the tests pass. Are you referring to scenarios where you build go from source?

joefitzgerald avatar Nov 18 '14 01:11 joefitzgerald

Yes, development builds which are just snapshots of the current development. Betas/RCs have prepared versioning.

So yeah, probably a mildly obscure issue, but if all other tests complete just fine, the version number shouldn't really matter.

hansrodtang avatar Nov 18 '14 02:11 hansrodtang

@hansrodtang Can you test with the latest in master and let me know if this does the trick?

joefitzgerald avatar Nov 18 '14 04:11 joefitzgerald

After removing the code.google.com import path for the cover tool (Go 1.4 does not accept it) it builds just fine (Build log)

hansrodtang avatar Nov 18 '14 15:11 hansrodtang