Hi ports@,

$ cat
govet/pkg/DESCR Vet examines Go source code and reports suspicious
constructs, such as Printf calls whose arguments do not align with the
format string.

Vet uses heuristics that do not guarantee all reports are genuine
problems, but it can find errors not caught by the compilers.
$

Tested on amd64 -current snapshot from May 20. The package is based
on devel/gocover.

I would also like to ask anyone that has the time to update MAINTAINER
on my other ports
 - www/otter-browser
 - devel/gocover

an email address change from [email protected] to
[email protected] which is my private email address.

Without the package installed:

$ go vet koparo.com/go/floodgate
go tool: no such tool "vet"; to install:
        go get golang.org/x/tools/cmd/vet


after installing the package
$ go vet koparo.com/go/floodgate           
../../../../koparo.com/go/floodgate/backend_json.go:67: arg groupID for
printf verb %s of wrong type:
int64 ../../../../koparo.com/go/floodgate/floodgate.go:111: arg swingID
for printf verb %f of wrong type:
int64 ../../../../koparo.com/go/floodgate/floodgate.go:354: arg swingID
for printf verb %f of wrong type:
int64 ../../../../koparo.com/go/floodgate/clients_test.go:264: range
variable d captured by func
literal ../../../../koparo.com/go/floodgate/clients_test.go:266: range
variable d captured by func literal exit status 1

Known issues about the port:
 - the test step is disabled

# Requires http://golang.org/test/errchk which is not present
# in lang/go or the download for this package
NO_TEST =               yes

This is a Perl script that's not shipped in lang/go or the download
for this package. I think it's not worth pursuing bundling it in
this package. To keep things on record here is the error reported
when tests are enabled:

$ make test
===>  Regression tests for govet-1.4p0
cd /usr/ports/pobj/govet-1.4/govet-1.4/src/golang.org/x/tools/cmd/vet
&& GOPATH="/usr/ports/pobj/govet-1.4/govet- 1.4" go test -v
=== RUN TestVet
--- FAIL: TestVet (2.94s)
        vet_test.go:66: fork/exec /usr/local/go/test/errchk: no such
file or directory FAIL
exit status 1
FAIL    golang.org/x/tools/cmd/vet      2.957s
*** Error 1 in . (Makefile:32 'do-test')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2792
'/usr/ports/pobj/govet-1.4/.test_done') *** Error 1
in /usr/ports/mystuff/devel/govet
(/usr/ports/infrastructure/mk/bsd.port.mk:2485 'test')

Attachment: govet.tar.gz
Description: application/gzip

Reply via email to