summaryrefslogtreecommitdiff
path: root/src/cmd/go/vet.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd/go: fix 'go vet' of package with external testsRuss Cox2014-10-061-5/+18
| | | | | | | | | | | | For example, fixes 'go vet syscall', which has source files in package syscall_test. Fixes issue 8511. LGTM=r R=golang-codereviews, r CC=golang-codereviews, iant https://codereview.appspot.com/152220044
* cmd/go: update go vet documentationRoger Peppe2013-06-071-1/+1
| | | | | | R=rsc, minux.ma, r CC=golang-dev https://codereview.appspot.com/10110043
* cmd/vet: add assembly checkerRuss Cox2013-03-221-1/+1
| | | | | | | | Fixes issue 5036. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/7531045
* cmd/go: fix vetFrancisco Souza2013-02-251-1/+1
| | | | | | | | | | | | | | Now that vet does typechecking, it should use only pkg.gofiles, instead of pkg.allgofiles. Ignored files should not be checked by vet, because they wouldn't typecheck. Fixes issue 4906. R=rsc, r CC=golang-dev https://codereview.appspot.com/7401051 Committer: Rob Pike <r@golang.org>
* cmd/go: fix vetRuss Cox2013-02-141-1/+1
| | | | | | | | | | | | | | The IgnoredGoFiles are already listed in allgofiles, so they were being run twice. Worse, the ones in IgnoredGoFiles are not fully qualified paths, so they weren't being found when executed outside the package directory. Fixes issue 4764. R=golang-dev, minux.ma, franciscossouza CC=golang-dev https://codereview.appspot.com/7308049
* cmd/go: many bug fixesRuss Cox2013-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reject import paths of the form cmd/x/y. * Reject 'go install' of command outside GOPATH * Clearer error rejecting 'go install' of package outside GOPATH. * Name temporary binary for first file in 'go run' list or for test. * Provide a way to pass -ldflags arguments with spaces. * Pass all Go files (even +build ignored ones) to go fix, go fmt, go vet. * Reject 'go run foo_test.go'. * Silence 'exit 1' prints from 'go tool' invocations. * Make go test -xxxprofile leave binary behind for analysis. * Reject ~ in GOPATH except on Windows. * Get a little less confused by symlinks. * Document that go test x y z runs three test binaries. * Fix go test -timeout=0. * Add -tags flag to 'go list'. * Use pkg/gccgo_$GOOS_$GOARCH for gccgo output. Fixes issue 3389. Fixes issue 3500. Fixes issue 3503. Fixes issue 3760. Fixes issue 3941. Fixes issue 4007. Fixes issue 4032. Fixes issue 4074. Fixes issue 4127. Fixes issue 4140. Fixes issue 4311. Fixes issue 4568. Fixes issue 4576. Fixes issue 4702. R=adg CC=golang-dev https://codereview.appspot.com/7225074
* cmd/go: invoke godoc with import path when possibleRuss Cox2012-05-151-1/+8
| | | | | | | | | | | | Also add -n -x flags to doc, fmt, vet. Also shorten unknown command error. Fixes issue 3612. Fixes issue 3613. R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/6211053
* cmd/go: fixesRuss Cox2012-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 http://codereview.appspot.com/5708054
* tools: update references to "x" to be "go tool x"Rob Pike2012-02-041-2/+2
| | | | | | | | | For instance, don't talk about gofix, talk about the fix tool or "go tool fix". R=golang-dev, rsc, r CC=golang-dev http://codereview.appspot.com/5608053
* cmd/go: improvementsRuss Cox2012-01-311-1/+1
| | | | | | | | | | | | Print build errors to stderr during 'go run'. Stream test output during 'go test' (no args). Fixes issue 2731. Add go test -i to install test dependencies. Fixes issue 2685. Fix data race in exitStatus. Fixes issue 2709. Fix tool paths. Fixes issue 2817. R=golang-dev, bradfitz, n13m3y3r, r CC=golang-dev http://codereview.appspot.com/5591045
* cmd/go: add go tools to rearrangementRob Pike2012-01-291-3/+3
| | | | | | | | | | | | fix, vet yacc is also fixed (it was wrong before) All that's left is the commands used during compilation This looks like a huge CL, but it's almost all file renames. The action is in cmd/go/pkg.go, the Makefiles, and .../doc.go. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5595044
* cmd/go: use relative paths in go fix, go fmt, go vet outputRuss Cox2012-01-121-1/+1
| | | | | | | | Fixes issue 2686. R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5528089
* go/build: pass CgoLDFLAGS at end of link commandRuss Cox2012-01-121-1/+1
| | | | | | | | | | | By the time a Unix linker gets to the end of the command line it has forgotten what you told it at the beginning of the command line, so you have to put library arguments (like -lm) at the end. R=golang-dev, r, bradfitz CC=golang-dev http://codereview.appspot.com/5541043
* go: implement doc, fmt, fix, list, vetRuss Cox2011-12-131-3/+6
| | | | | | | | | | | | | | This CL is concerned with the basic Package structure and applies it to the (trivial) implementations of the doc, fmt, fix, list, and vet commands. The command as a whole is still very much a work in progress. In particular, work making the error messages look nice is deferred to a future CL. R=golang-dev, adg, dsymonds, r CC=golang-dev http://codereview.appspot.com/5482048
* go: skeleton implementationRuss Cox2011-09-281-0/+27
R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5141051