]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fixes
authorRuss Cox <rsc@golang.org>
Thu, 1 Mar 2012 17:12:22 +0000 (12:12 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 1 Mar 2012 17:12:22 +0000 (12:12 -0500)
commitb03a5f66e8f8a6b36c9d67e82d2edc9b3d4076ba
tree04c6adaa8bc280db128b4978c889c1393dd4c71a
parentebe1664d2789cd4ea0ded0eccb9067c729378cc5
cmd/go: fixes
* Install tools into tool dir always
  (Fixes issue 3049.  Fixes issue 2868.  Fixes issue 2925.)
* Make packages depend on compiler, linker (Fixes issue 3036.)
* Do not recompile packages across roots (Fixes issue 3149.)
* Allow use of binary-only packages (Fixes issue 2775.)
* Avoid duplicate cgo dependencies (Fixes issue 3001.)
* Show less in go get -x.  (Fixes issue 2926.)
* Do not force repo root for existing checkout (Fixes issue 2969.)
* Show full syntax error list always (Fixes issue 2811.)
* Clean arguments before processing (Fixes issue 3034.)
* Add flags for compiler, linker arguments (Fixes issue 2996.)
* Pass flags in make.bash (Fixes issue 3091.)
* Unify build flags, defined in one place.
* Clean up error messages (Fixes issue 3075.  Fixes issue 2923.)
* Support local import paths (Fixes issue 3118.)
* Allow top-level package outside $GOPATH (Fixes issue 3009.)

In addition to these fixes, all commands now take a list of
go files as a way to specify a single package, just as go build and
go run always have.  This means you can:

        go list -json x.go
        go fix x.go
        go vet x.go
        go test x_test.go

Preliminary tests in test.bash.
Mainly testing things that the ordinary build does not.
I don't mind if the script doesn't run on Windows.

I expect that gccgo support is now broken, and I hope that
people will feel free to file issues and/or send CLs to fix it.  :-)

R=golang-dev, dsymonds, r, rogpeppe
CC=golang-dev
https://golang.org/cl/5708054
24 files changed:
src/cmd/go/build.go
src/cmd/go/clean.go
src/cmd/go/doc.go
src/cmd/go/fix.go
src/cmd/go/fmt.go
src/cmd/go/get.go
src/cmd/go/help.go
src/cmd/go/list.go
src/cmd/go/main.go
src/cmd/go/pkg.go
src/cmd/go/run.go
src/cmd/go/test.bash [new file with mode: 0755]
src/cmd/go/test.go
src/cmd/go/testdata/errmsg/x.go [new file with mode: 0644]
src/cmd/go/testdata/errmsg/x1_test.go [new file with mode: 0644]
src/cmd/go/testdata/errmsg/x_test.go [new file with mode: 0644]
src/cmd/go/testdata/local/easy.go [new file with mode: 0644]
src/cmd/go/testdata/local/easysub/easysub.go [new file with mode: 0644]
src/cmd/go/testdata/local/hard.go [new file with mode: 0644]
src/cmd/go/testdata/local/sub/sub.go [new file with mode: 0644]
src/cmd/go/testdata/local/sub/sub/subsub.go [new file with mode: 0644]
src/cmd/go/vcs.go
src/cmd/go/vet.go
src/make.bash