Closed theckman closed 3 years ago
Just tried this w/ Go 1.12.1 on my laptop (Ubuntu 18.04). No error from go vet
. :confused:
go version
-> go version go1.12.1 linux/amd64
go env
:
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dylan/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/dylan/dev/golang"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS=""
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS=""
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build244704731=/tmp/go-build -gno-record-gcc-switches"
/tmp/test.go
:
package main
import (
"fmt"
"github.com/gofrs/uuid"
)
func main() {
u := uuid.Must(uuid.NewV4())
fmt.Printf("capitalized UUID: %S", u)
}
Seems to be an issue w/ go vet
-> https://github.com/golang/go/issues/31000#issuecomment-475648810
Should be fixed in Go 1.21.2 per https://github.com/golang/go/issues/30399
Apologies for abandoning this. Life happens. ( ._.)
I just verified that go vet
is clean when run against the example program @theckman posted above using Go 1.13.1. I don't have an easy way to test against a 1.12 environment.
This issue appears to have been fixed up stream. Closing for now!
The new
%S
verb seems to causego vet
in Go1.12.x
to fail when vetting code that tries to use it, as it believes%S
is not a supported verb. This does not fail for1.11.x
ortip
. A Go issue was opened to track this: https://github.com/golang/go/issues/31000.This is blocking the release of
v3.3.0
, andv4.0.0
(#71).