Anwender95 / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

go-tour does not compile on latest go weekly, even after running gofix #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use latest go weekly
2. try to goinstall
3. source code not up to date, gofix can't fix all issues

What is the expected output? What do you see instead?
good: should work
bad: this error after running gofix on all *.go files left:

 goinstall go-tour.googlecode.com/hg/gotour
/bin/bash: === cd /home/aj/go/src/pkg/go-tour.googlecode.com/hg/gotour; bash 
gomake -f- install
6g  -I "/home/aj/go/pkg/linux_amd64" -I "/home/aj/go/pkg/linux_amd64"  -o 
_go_.6 goplay.go local.go 
goplay.go:29: err.String undefined (type error has no field or method String)
make: *** [_go_.6] Fehler 1
--- exit status 2

What version of the product are you using? On what operating system?
go weekly latest release on linux amd64.

Please provide any additional information below.

My workaround is to comment out that line
                        // resp.Errors = err.String()
but that is obviously not the right result. what is the proper fix?

Andreas

Original issue reported on code.google.com by andr...@ionisiert.de on 13 Nov 2011 at 7:39

GoogleCodeExporter commented 8 years ago
The tour is only designed to work with the latest release. It is too much work 
to keep the tour (and all the example code) up to date with each and every 
weekly. Once the next release comes out the tour will be updated.

From the front page: "Note: the tour will only build against the current stable 
release of Go (release.r60)."

From slide 2 of tour.golang.org: "To run the tour locally first install Go (the 
latest stable release, release.r60)"

Original comment by a...@golang.org on 13 Nov 2011 at 8:12