mysqld_exporter
mysqld_exporter copied to clipboard
Build failed on centos7.6
Host operating system: output of uname -a
CentOS Linux release 7.6.1810 (Core) Linux controller-us-central1-0 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
mysqld_exporter version: output of mysqld_exporter --version
MySQL server version
Server version: 10.1.41-MariaDB MariaDB Server
mysqld_exporter command line flags
What did you do that produced an error?
make
What did you expect to see?
successfully build the mysqld_exporter
What did you see instead?
+golang.org/x/sys/windows golang.org/x/sys/windows/registry +golang.org/x/sys/windows/svc/eventlog
google.golang.org/appengine v1.6.1
google.golang.org/appengine/cloudsql
gopkg.in/alecthomas/kingpin.v2 v2.2.6
make: *** [common-unused] Error 1 [root@controller-us-central1-0 mysqld_exporter]#
I have the same problem since I rebased an old branch onto last master. Before make ran fine, now I have systematically this error :
>> checking code style
>> checking license header
>> running golangci-lint
GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
GO111MODULE=on /home/frederic/go/bin/golangci-lint run ./...
>> running check for unused/missing packages in go.mod
GO111MODULE=on go mod tidy
>> running check for unused packages in vendor/
GO111MODULE=on go mod vendor
diff --git a/vendor/modules.txt b/vendor/modules.txt
index d82ef5e..1aa9cc7 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -28,17 +28,17 @@ github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/pkg/errors
# github.com/prometheus/client_golang v1.0.0
github.com/prometheus/client_golang/prometheus
-github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/client_golang/prometheus/promhttp
+github.com/prometheus/client_golang/prometheus/internal
# github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
github.com/prometheus/client_model/go
# github.com/prometheus/common v0.6.0
-github.com/prometheus/common/expfmt
-github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
-github.com/prometheus/common/model
github.com/prometheus/common/promlog
github.com/prometheus/common/promlog/flag
github.com/prometheus/common/version
+github.com/prometheus/common/expfmt
+github.com/prometheus/common/model
+github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
# github.com/prometheus/procfs v0.0.3
github.com/prometheus/procfs
github.com/prometheus/procfs/internal/fs
@@ -51,8 +51,8 @@ github.com/smartystreets/assertions/internal/go-render/render
github.com/smartystreets/assertions/internal/oglematchers
# github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a
github.com/smartystreets/goconvey/convey
-github.com/smartystreets/goconvey/convey/gotest
github.com/smartystreets/goconvey/convey/reporting
+github.com/smartystreets/goconvey/convey/gotest
# golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
golang.org/x/sys/windows
# google.golang.org/appengine v1.6.1
Makefile.common:189: recipe for target 'common-unused' failed
make: *** [common-unused] Error 1
Before I run the make, the file vendor/modules.txt
is unchanged. But the make produced an error recipe for target 'common-unused' failed
with a git diff of vendor/modules.txt
showing some changes. But the changes are made by the make.
If I discard changes, the same scenario occurs again and agin.
I have Ubuntu 18.04.