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

make go-lint failed #2977

Closed
johncming opened this issue Aug 4, 2020 · 5 comments
Closed

make go-lint failed #2977

johncming opened this issue Aug 4, 2020 · 5 comments

Comments

@johncming
Copy link
Contributor

johncming commented Aug 4, 2020

Thanos, Prometheus and Golang version used:

only thanos, the version is a pr below.

What happened:

make go-lint failed in #2976 in local develop environment and failed occasionally in ci checks in github.

cannot detected files without copyright: you have unstaged changes.
M	pkg/rules/rulespb/rpc.pb.go
M	pkg/store/hintspb/hints.pb.go
M	pkg/store/storepb/prompb/remote.pb.go
M	pkg/store/storepb/prompb/types.pb.go
M	pkg/store/storepb/rpc.pb.go
M	pkg/store/storepb/types.pb.go
Please commit or stash them.
make: *** [go-lint] Error 1

local env:

➜  ~ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/john/Library/Caches/go-build"
GOENV="/Users/john/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/john/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.6/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.6/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/bl/j9gvhbpj3p1c95wh767kj0qc0000gn/T/go-build001516030=/tmp/go-build -gno-record-gcc-switches -fno-common"

diff detail:
pr_2976.txt

Can anyone see this. I checked this files that it's same as origin master.

How to reproduce it (as minimally and precisely as possible):

In pr #2976 , run make go-lint

@bwplotka

@GiedriusS
Copy link
Member

GiedriusS commented Aug 4, 2020

[edit]

Actually, it seems like you are using an old version of a package:


-const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package

@johncming
Copy link
Contributor Author

[edit]

Actually, it seems like you are using an old version of a package:


-const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package

Ye, this diff was created after running make go-lint. It's weird because I have an updated master branch from origin/master.

@yeya24
Copy link
Contributor

yeya24 commented Aug 4, 2020

I saw the CI passed. Is this still a problem? @johncming

@johncming
Copy link
Contributor Author

I saw the CI passed. Is this still a problem? @johncming

Yes, the ci passed. But the error msg I don't know why. In local env, the error still here.

@stale
Copy link

stale bot commented Sep 4, 2020

Hello 👋 Looks like there was no activity on this issue for last 30 days.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we can always reopen an issue if we need!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale stale bot added the stale label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants