mirror of
https://github.com/golang/go
synced 2024-11-05 23:26:18 -07:00
1b22574ddb
A go/build change in Go 1.9 (CL 33158) allowed for a better expected error message for "nonexistingpkg" case. CL 37768 did that. However, that shouldn't be done for Go 1.8 and older, since they don't have the corresponding go/build change. So, if the version is Go 1.8 or older, allow matching those previous expected outputs (before CL 37768) for "nonexistingpkg" case. Move test cases for TestCLI from a package-level variable into TestCLI itself. This is more readable, and isGo19's value is ready in time. Fixes golang/go#20122. Change-Id: I5e80600a75176d9e54ffebb7730849e381568316 Reviewed-on: https://go-review.googlesource.com/41810 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
appinit.go | ||
autocert.go | ||
blog.go | ||
codewalk.go | ||
dl.go | ||
doc.go | ||
godoc19_test.go | ||
godoc_test.go | ||
handlers.go | ||
index.go | ||
main.go | ||
play.go | ||
README.godoc-app | ||
remotesearch.go | ||
setup-godoc-app.bash | ||
x.go |
godoc on appengine ------------------ Prerequisites ------------- * Go appengine SDK https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go * Go sources at tip under $GOROOT * Godoc sources at tip inside $GOPATH (go get -d golang.org/x/tools/cmd/godoc) Directory structure ------------------- * Let $APPDIR be the directory containing the app engine files. (e.g., $APPDIR=$HOME/godoc-app) * $APPDIR contains the following entries (this may change depending on app-engine release and version of godoc): app.yaml golang.org/x/tools/cmd/godoc godoc.zip index.split.* * The app.yaml file is set up per app engine documentation. For instance: application: godoc-app version: 1 runtime: go api_version: go1 handlers: - url: /.* script: _go_app Configuring and running godoc ----------------------------- To configure godoc, run bash setup-godoc-app.bash to prepare an $APPDIR as described above. See the script for details on usage. To run godoc locally, using the App Engine development server, run <path to go_appengine>/dev_appserver.py $APPDIR godoc should come up at http://localhost:8080 .