Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-tags are broken from rev 1.11 #261

Closed
derElektrobesen opened this issue Oct 29, 2018 · 1 comment
Closed

build-tags are broken from rev 1.11 #261

derElektrobesen opened this issue Oct 29, 2018 · 1 comment

Comments

@derElektrobesen
Copy link

Build-tags command-line option was broken in release 1.11. It worked well in 1.10.2. Same problem in 1.11.1

$ go version && go env
go version go1.10.2 linux/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/gopath"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build055138094=/tmp/go-build"

$ golangci-lint --version
golangci-lint has version 1.11.1 built from f9e1c65 on 2018-10-28T16:56:11Z

$ golangci-lint run --build-tags="testing,integration"
level=error msg="Running error: context loading failed: failed to load program with go/packages: unsupported version of go: exit status 2: flag provided but not defined: -tags 'testing integration'\nusage: list [-e] [-f format] [-json] [build flags] [packages]\nRun 'go help list' for details.\n"
derElektrobesen pushed a commit to derElektrobesen/golangci-lint that referenced this issue Oct 29, 2018
@jirfag jirfag closed this as completed in f5f7701 Oct 29, 2018
@jirfag
Copy link
Contributor

jirfag commented Oct 29, 2018

thank you for the pull request!
the fix will be in v1.11.2 release in 1 hour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants