Giter VIP home page Giter VIP logo

Comments (30)

gregwebs avatar gregwebs commented on August 22, 2024 2

prior versions of go 1.11 have incorrect checksums. If you compiled with them you need to run GO111MODULE=on go clean -modcache

from dm.

ddatsh avatar ddatsh commented on August 22, 2024 1

get checksum mismatch too
I always remove go.sum

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

What is your go version, GOPATH env value and GO111MODULE env value, I can't reproduce this error

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

What is your go version, GOPATH env value and GO111MODULE env value, I can't reproduce this error

[root@dba dm]# go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/data/goworkspace"
GOPROXY="https://goproxy.io"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/data/gomodworkspace/dm/go.mod"
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-build681193412=/tmp/go-build -gno-record-gcc-switches"
[root@dba dm]#

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

go version go1.12 linux/amd64

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

go version go1.12 linux/amd64

and

it's GO111MODULE=on

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

but now...it's :

[root@dba dm]# GO111MODULE=on
[root@dba dm]# make build
gofmt (simplify)
GO111MODULE=off go get golang.org/x/lint/golint
golint
go: downloading github.com/golang/protobuf v1.2.0
go: downloading github.com/shirou/gopsutil v2.18.10+incompatible
go: downloading github.com/cznic/sortutil v0.0.0-20150617083342-4c7342852e65
go: downloading golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/coreos/etcd v3.3.10+incompatible
go: downloading github.com/uber/jaeger-lib v1.5.0
go: downloading golang.org/x/tools v0.0.0-20190130214255-bb1329dc71a0
go: downloading github.com/gogo/protobuf v1.2.0
go: extracting github.com/cznic/sortutil v0.0.0-20150617083342-4c7342852e65
go: downloading google.golang.org/genproto v0.0.0-20190108161440-ae2f86662275
go: extracting github.com/pkg/errors v0.8.1
go: downloading github.com/pingcap/kvproto v0.0.0-20190215154024-7f2fc73ef562
go: extracting github.com/uber/jaeger-lib v1.5.0
verifying github.com/grpc-ecosystem/[email protected]: checksum mismatch
downloaded: h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c=
go.sum: h1:BWIsLfhgKhV5g/oF34aRjniBHLTZe5DNekSjbAjIS6c=
vet
flag provided but not defined: -shadow
vet is a tool for static analysis of Go programs.

Usage of vet:
vet unit.cfg # execute analysis specified by config file
vet help # general help
vet help name # help on specific analyzer and its flags
make: *** [vet] Error 1
[root@dba dm]# pwd
/data/gomodworkspace/dm
[root@dba dm]#

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

well DM is not support building with go1.12 now, it seems some checksum is not same between go1.11.x and go1.12, besides go tool vet is no longer supported from go1.12
If you want to build and run DM in your environment, we recommend you to use go1.11.x now

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

well DM is not support building with go1.12 now, it seems some checksum is not same between go1.11.x and go1.12, besides go tool vet is no longer supported from go1.12
If you want to build and run DM in your environment, we recommend you to use go1.11.x now

excuse me ,i'm changed go version,but it's does't work also:

[root@dba dm]# make build
gofmt (simplify)
GO111MODULE=off go get golang.org/x/lint/golint
golint
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding github.com/stretchr/objx v0.1.0
go: finding google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e
go: finding sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67
go: finding google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f
go: finding github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9
go: finding golang.org/x/net v0.0.0-20181106065722-10aee1819953
go: finding github.com/hpcloud/tail v1.0.0
go: finding go.uber.org/multierr v1.1.0
go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
go: finding github.com/stretchr/objx v0.1.1
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7
go: finding github.com/onsi/ginkgo v1.6.0
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding google.golang.org/grpc v1.16.0
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58
go: finding github.com/davecgh/go-spew v1.1.0
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
go: finding github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
go: downloading github.com/pingcap/errors v0.11.0
go: downloading github.com/golang/protobuf v1.2.0
go: downloading github.com/spf13/cobra v0.0.3
go: downloading google.golang.org/grpc v1.17.0
go: downloading github.com/pingcap/tidb v0.0.0-20190307110701-c00846001d44
go: downloading github.com/pingcap/tidb-tools v2.1.3-0.20190305052038-e6c996e1e2ee+incompatible
go: downloading github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/prometheus/client_golang v0.9.1
go: downloading github.com/siddontang/go-mysql v0.0.0-20190118051307-00086da2c732
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading github.com/pingcap/parser v0.0.0-20190305083139-b478256a6451
go: downloading github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: downloading golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: downloading github.com/soheilhy/cmux v0.1.4
go: downloading github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: downloading golang.org/x/sys v0.0.0-20190116161447-11f53e031339
go: downloading github.com/sirupsen/logrus v1.3.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/pingcap/tipb v0.0.0-20190107072121-abbec73437b7
go: downloading github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading golang.org/x/text v0.3.0
go: downloading google.golang.org/genproto v0.0.0-20190108161440-ae2f86662275
go: downloading github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: downloading github.com/gogo/protobuf v1.2.0
go: downloading golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
go: downloading github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: downloading github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: downloading github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: downloading github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e
go: downloading github.com/twinj/uuid v1.0.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
go: downloading github.com/coreos/etcd v3.3.10+incompatible
go: downloading github.com/pingcap/kvproto v0.0.0-20190215154024-7f2fc73ef562
go: downloading github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: verifying github.com/grpc-ecosystem/[email protected]: checksum mismatch
downloaded: h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c=
go.sum: h1:BWIsLfhgKhV5g/oF34aRjniBHLTZe5DNekSjbAjIS6c=
vet
dm/master/config.go:112: declaration of "err" shadows declaration at dm/master/config.go:98
dm/worker/config.go:156: declaration of "err" shadows declaration at dm/worker/config.go:142
bash -x ./tests/wait_for_mysql.sh

  • source ./tests/util.sh
  • check_db_status '' '' mysql
  • true
  • mysqladmin -h '' -P '' -u root ping
  • break
  • echo 'mysql is alive'
    mysql is alive
    mkdir -p /tmp/dm_test
    go: downloading golang.org/x/text v0.3.0
    go: downloading github.com/coreos/etcd v3.3.10+incompatible
    go: downloading github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
    go: downloading github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
    go: verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
    downloaded: h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
    go.sum: h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=
    can't load package: package github.com/pingcap/dm: unknown import path "github.com/pingcap/dm": cannot find module providing package github.com/pingcap/dm
    make: *** [test] Error 1
    [root@dba dm]#
    [root@dba dm]#
    [root@dba dm]# pwd
    /data/gomodworkspace/dm
    [root@dba dm]# go version
    go version go1.11.5 linux/amd64
    [root@dba dm]#

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

it seems there exist some module mismatch, try to remove github.com/coreos/etcd / github.com/grpc-ecosystem/go-grpc-middleware from go mod cache or just run go clean -modcache and make build again?

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

i try again,but now question new :

it seems there exist some module mismatch, try to remove github.com/coreos/etcd / github.com/grpc-ecosystem/go-grpc-middleware from go mod cache or just run go clean -modcache and make build again?

i try again ,but now question raise :

[root@dba dm]# go clean -modcache
go: finding github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7
go: finding github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/davecgh/go-spew v1.1.0
go: finding google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f
go: finding google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58
go: finding go.uber.org/multierr v1.1.0
go: finding go.uber.org/atomic v1.3.2
can't load package: package github.com/pingcap/dm: unknown import path "github.com/pingcap/dm": cannot find module providing package github.com/pingcap/dm
[root@dba dm]#
[root@dba dm]#
[root@dba dm]#
[root@dba dm]# go clean -modcache
go: finding github.com/pingcap/tidb v0.0.0-20190307110701-c00846001d44
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/pingcap/errors v0.11.0
go: finding github.com/gogo/protobuf v1.2.0
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/pingcap/parser v0.0.0-20190305083139-b478256a6451
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/prometheus/client_golang v0.9.1
go: finding github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
go: finding github.com/go-sql-driver/mysql v1.4.1
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/sirupsen/logrus v1.3.0
go: finding github.com/pingcap/tidb-tools v2.1.3-0.20190305052038-e6c996e1e2ee+incompatible
go: finding google.golang.org/grpc v1.17.0
go: finding golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
go: finding github.com/satori/go.uuid v1.2.0
go: finding github.com/stretchr/objx v0.1.1
go: finding github.com/siddontang/go-mysql v0.0.0-20190118051307-00086da2c732
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/chzyer/logex v1.1.10
go: finding github.com/spf13/pflag v1.0.3
go: finding gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: finding github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding golang.org/x/text v0.3.0
go: finding github.com/BurntSushi/toml v0.3.1
go: finding cloud.google.com/go v0.26.0
go: finding golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52
go: finding github.com/client9/misspell v0.3.4
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sync" (https fetch: Get https://golang.org/x/sync?go-get=1: unexpected EOF)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: unexpected EOF)
go: finding golang.org/x/sys v0.0.0-20190116161447-11f53e031339
go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/davecgh/go-spew v1.1.1
go: finding google.golang.org/appengine v1.1.0
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/kisielk/gotool v1.0.0
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: unexpected EOF)
go: finding honnef.co/go/tools v0.0.0-20180728063816-88497007e858
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
go: finding github.com/golang/mock v1.1.1
go: github.com/pingcap/[email protected]+incompatible: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /data/goworkspace/pkg/mod/cache/vcs/7834513756c1e282023686e7ba4b926375dfd74aa5d922eb919b320adf12bebd: exit status 128:
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
go: error loading module requirements
[root@dba dm]#
[root@dba dm]# go clean -modcache
go: finding github.com/pingcap/tidb-tools v2.1.3-0.20190305052038-e6c996e1e2ee+incompatible
go: finding github.com/shirou/gopsutil v2.18.10+incompatible
go: finding github.com/dustin/go-humanize v1.0.0
go: finding github.com/grpc-ecosystem/grpc-gateway v1.5.1
go: finding github.com/coreos/etcd v3.3.10+incompatible
go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding go.uber.org/zap v1.9.1
go: finding github.com/golang/groupcache v0.0.0-20181024230925-c65c006176ff
go: finding google.golang.org/genproto v0.0.0-20190108161440-ae2f86662275
go: finding github.com/go-sql-driver/mysql v0.0.0-20170715192408-3955978caca4
go: finding github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142
go: finding github.com/gorilla/context v1.1.1
go: finding github.com/opentracing/basictracer-go v1.0.0
go: finding github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385
go: finding github.com/ugorji/go/codec v0.0.0-20181127175209-856da096dbdf
go: finding github.com/pingcap/kvproto v0.0.0-20190215154024-7f2fc73ef562
go: finding golang.org/x/net v0.0.0-20181106065722-10aee1819953
go: finding github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/struCoder/pidusage v0.1.2
go: finding github.com/onsi/ginkgo v1.7.0
go: finding github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/pingcap/gofail v0.0.0-20181217135706-6a951c1e42c3
go: finding github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f
go: finding github.com/blacktear23/go-proxyprotocol v0.0.0-20180807104634-af7a81e8dd0d
go: finding github.com/shurcooL/vfsgen v0.0.0-20181020040650-a97a25d856ca
go: finding github.com/cznic/sortutil v0.0.0-20150617083342-4c7342852e65
go: finding github.com/prometheus/client_golang v0.9.0
go: finding sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67
go: finding github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding github.com/uber/jaeger-lib v1.5.0
go: finding github.com/twinj/uuid v1.0.0
go: finding github.com/StackExchange/wmi v0.0.0-20180725035823-b12b22c5341f
go: finding github.com/uber-go/atomic v1.3.2
go: finding github.com/gorilla/mux v1.6.2
go: finding github.com/unrolled/render v0.0.0-20180914162206-b9786414de4d
go: finding github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: finding github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: finding github.com/etcd-io/gofail v0.0.0-20180808172546-51ce9a71510a
go: finding github.com/pingcap/pd v2.1.0-rc.4+incompatible
go: finding github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e
go: finding github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd
go: finding github.com/onsi/ginkgo v1.6.0
go: finding github.com/opentracing/opentracing-go v1.0.2
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/tools" (https fetch: Get https://golang.org/x/tools?go-get=1: unexpected EOF)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/time" (https fetch: Get https://golang.org/x/time?go-get=1: unexpected EOF)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: unexpected EOF)
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/myesui/uuid v1.0.0
go: finding github.com/hpcloud/tail v1.0.0
go: finding gopkg.in/stretchr/testify.v1 v1.2.2
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: unexpected EOF)
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18
go: finding github.com/coreos/bbolt v1.3.0
go: finding sourcegraph.com/sourcegraph/appdash v0.0.0-20180531100431-4c381bd170b4
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding github.com/pingcap/parser v0.0.0-20190228070002-74e8cffabf28
go: finding github.com/montanaflynn/stats v0.0.0-20180911141734-db72e6cae808
go: finding google.golang.org/grpc v1.16.0
go: finding github.com/pingcap/log v0.0.0-20190214045112-b37da76f67a7
go: finding github.com/pingcap/tidb-tools v2.1.3-0.20190116051332-34c808eef588+incompatible
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding github.com/uber/jaeger-client-go v2.15.0+incompatible
go: finding github.com/ghodss/yaml v1.0.0
go: finding github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
go: finding github.com/gorilla/websocket v1.4.0
go: finding github.com/boltdb/bolt v1.3.1
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20171017195756-830351dc03c6
go: finding github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
go: finding github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
go: finding github.com/pingcap/tipb v0.0.0-20190107072121-abbec73437b7
go: finding github.com/go-ole/go-ole v1.2.1
go: finding github.com/coreos/go-semver v0.2.0
go: error loading module requirements
[root@dba dm]#

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

and i moved github.com/coreos/etcd / github.com/grpc-ecosystem/go-grpc-middleware aslo.

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

The latest error such as go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/tools" (https fetch: Get https://golang.org/x/tools?go-get=1: unexpected EOF) causes build fails
These network unaccessable errors are often related to some network restriction in China.
Try to use a VPN or http_proxy/https_proxy to enable the download of all dependencies.

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

oa , i see !
i will close other process that access my network ..keep the go process can accessable.
..
i try it ...now.

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

The latest error such as go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/tools" (https fetch: Get https://golang.org/x/tools?go-get=1: unexpected EOF) causes build fails
These network unaccessable errors are often related to some network restriction in China.
Try to use a VPN or http_proxy/https_proxy to enable the download of all dependencies.

sorry ,i try it again:

[root@dba dm]# make build
gofmt (simplify)
GO111MODULE=off go get golang.org/x/lint/golint
golint
go: downloading github.com/coreos/etcd v3.3.10+incompatible
go: downloading golang.org/x/sys v0.0.0-20190116161447-11f53e031339
go: downloading github.com/twinj/uuid v1.0.0
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e
go: downloading github.com/pingcap/pd v2.1.0-rc.4+incompatible
go: downloading github.com/cznic/sortutil v0.0.0-20150617083342-4c7342852e65
go: downloading github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: downloading github.com/shirou/gopsutil v2.18.10+incompatible
go: verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
downloaded: h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
go.sum: h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=
vet
dm/master/config.go:112: declaration of "err" shadows declaration at dm/master/config.go:98
dm/worker/config.go:156: declaration of "err" shadows declaration at dm/worker/config.go:142
bash -x ./tests/wait_for_mysql.sh

  • source ./tests/util.sh
  • check_db_status '' '' mysql
  • true
  • mysqladmin -h '' -P '' -u root ping
  • break
  • echo 'mysql is alive'
    mysql is alive
    mkdir -p /tmp/dm_test
    go: downloading golang.org/x/text v0.3.0
    go: downloading golang.org/x/sys v0.0.0-20190116161447-11f53e031339
    go: downloading github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
    go: downloading github.com/coreos/etcd v3.3.10+incompatible
    go: downloading github.com/pingcap/kvproto v0.0.0-20190215154024-7f2fc73ef562
    go: downloading github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
    go: downloading github.com/shirou/gopsutil v2.18.10+incompatible
    go: downloading github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
    go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
    go: verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
    downloaded: h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
    go.sum: h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=
    can't load package: package github.com/pingcap/dm: unknown import path "github.com/pingcap/dm": cannot find module providing package github.com/pingcap/dm
    make: *** [test] Error 1
    [root@dba dm]#

what can i do for this question?

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

can you build binary successfully, such as make dm-worker dm-master dmctl?
checksum mismatch error happens again

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

can you build binary successfully, such as make dm-worker dm-master dmctl?
checksum mismatch error happens again

it's not work ,and the package coreos/etcd not in github.com:

[root@dba dm]# make dm-worker
CGO_ENABLED=0 GO111MODULE=on go build -ldflags '-X "github.com/pingcap/dm/pkg/utils.ReleaseVersion=v1.0.0-alpha-22-gd244a29" -X "github.com/pingcap/dm/pkg/utils.BuildTS=2019-03-08 10:35:36" -X "github.com/pingcap/dm/pkg/utils.GitHash=d244a29b6be9f0db1c1e9330a49263d7711dbeac" -X "github.com/pingcap/dm/pkg/utils.GitBranch=master" -X "github.com/pingcap/dm/pkg/utils.GoVersion=go version go1.11.5 linux/amd64" -X "github.com/pingcap/dm/dm/worker.SampleConfigFile=IyBXb3JrZXIgQ29uZmlndXJhdGlvbi4KCiNsb2cgY29uZmlndXJhdGlvbgpsb2ctbGV2ZWwgPSAiaW5mbyIKbG9nLWZpbGUgPSAiZG0td29ya2VyLmxvZyIKCiNkbS13b3JrZXIgbGlzdGVuIGFkZHJlc3MKd29ya2VyLWFkZHIgPSAiOjgyNjIiCgojc2VydmVyIGlkIG9mIHNsYXZlIGZvciBiaW5sb2cgcmVwbGljYXRpb24KI2VhY2ggaW5zdGFuY2UgKG1hc3RlciBhbmQgc2xhdmUpIGluIHJlcGxpY2F0aW9uIGdyb3VwIHNob3VsZCBoYXZlIGRpZmZlcmVudCBzZXJ2ZXIgaWQKc2VydmVyLWlkID0gMTAxCgojcmVwcmVzZW50cyBhIE15U1FML01hcmlhREIgaW5zdGFuY2Ugb3IgYSByZXBsaWNhdGlvbiBncm91cApzb3VyY2UtaWQgPSAibXlzcWwtcmVwbGljYS0wMSIKCiNmbGF2b3I6IG15c3FsL21hcmlhZGIKZmxhdm9yID0gIm15c3FsIgoKI2RpcmVjdG9yeSB0aGF0IHVzZWQgdG8gc3RvcmUgcmVsYXkgbG9nCnJlbGF5LWRpciA9ICIuL3JlbGF5X2xvZyIKCiNlbmFibGUgZ3RpZCBpbiByZWxheSBsb2cgdW5pdAplbmFibGUtZ3RpZCA9IGZhbHNlCgojY2hhcnNldCBvZiBEU04gb2Ygc291cmNlIG15c3FsL21hcmlhZGIgaW5zdGFuY2UKIyBjaGFyc2V0PSAiIgoKW2Zyb21dCmhvc3QgPSAiMTI3LjAuMC4xIgp1c2VyID0gInJvb3QiCnBhc3N3b3JkID0gIiIKcG9ydCA9IDMzMDYKCiNyZWxheSBsb2cgcHVyZ2Ugc3RyYXRlZ3kKI1twdXJnZV0KI2ludGVydmFsID0gMzYwMAojZXhwaXJlcyA9IDI0CiNyZW1haW4tc3BhY2UgPSAxNQo=" -X "github.com/pingcap/dm/dm/master.SampleConfigFile=IyBNYXN0ZXIgQ29uZmlndXJhdGlvbi4KCiNsb2cgY29uZmlndXJhdGlvbgpsb2ctbGV2ZWwgPSAiaW5mbyIKbG9nLWZpbGUgPSAiZG0tbWFzdGVyLmxvZyIKCiNkbS1tYXN0ZXIgbGlzdGVuIGFkZHJlc3MKbWFzdGVyLWFkZHIgPSAiOjgyNjEiCgojIHJlcGxpY2F0aW9uIGdyb3VwIDwtPiBkbS1Xb3JrZXIgZGVwbG95bWVudCwgd2UnbGwgcmVmaW5lIGl0IHdoZW4gbmV3IGRlcGxveW1lbnQgZnVuY3Rpb24gaXMgYXZhaWxhYmxlCltbZGVwbG95XV0Kc291cmNlLWlkID0gIm15c3FsLXJlcGxpY2EtMDEiCmRtLXdvcmtlciA9ICIxNzIuMTYuMTAuNzI6ODI2MiIKCltbZGVwbG95XV0Kc291cmNlLWlkID0gIm15c3FsLXJlcGxpY2EtMDIiCmRtLXdvcmtlciA9ICIxNzIuMTYuMTAuNzM6ODI2MiIK"' -o bin/dm-worker ./cmd/dm-worker
go: downloading golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/twinj/uuid v1.0.0
go: downloading github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: downloading github.com/coreos/etcd v3.3.10+incompatible
go: downloading github.com/pingcap/log v0.0.0-20190214045112-b37da76f67a7
go: downloading github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
go: verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
downloaded: h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
go.sum: h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=
make: *** [dm-worker] Error 1
[root@dba dm]#
[root@dba dm]# rm -rf ^C
[root@dba dm]# ls -al /data/goworkspace/pkg/mod/github.com
total 72
drwxr-xr-x. 18 root root 4096 Mar 8 18:35 .
drwxr-xr-x. 8 root root 4096 Mar 8 18:34 ..
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 beorn7
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 !burnt!sushi
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 gogo
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 golang
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 go-sql-driver
drwxr-xr-x. 4 root root 4096 Mar 8 18:35 ngaut
drwxr-xr-x. 9 root root 4096 Mar 8 18:35 pingcap
drwxr-xr-x. 6 root root 4096 Mar 8 18:34 prometheus
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 satori
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 shirou
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 shopspring
drwxr-xr-x. 5 root root 4096 Mar 8 18:34 siddontang
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 sirupsen
drwxr-xr-x. 3 root root 4096 Mar 8 18:34 soheilhy
drwxr-xr-x. 3 root root 4096 Mar 8 18:35 spaolacci
drwxr-xr-x. 3 root root 4096 Mar 8 18:35 twinj
[root@dba dm]#
[root@dba dm]#

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

can you build any one on you enveriment?

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

yep, I can build successfully in multiple environments.
try to find etcd in $GOPATH/pkg/mod/cache/download/github.com/coreos/etcd, delete it and retry build?

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

yep, I can build successfully in multiple environments.
try to find etcd in $GOPATH/pkg/mod/cache/download/github.com/coreos/etcd, delete it and retry build?

idon't know what happened..

it's also raise:Error 1

[root@dba dm]# rm -rf $GOPATH/pkg/mod/cache/download/github.com/coreos/etcd
[root@dba dm]# make dm-worker
CGO_ENABLED=0 GO111MODULE=on go build -ldflags '-X "github.com/pingcap/dm/pkg/utils.ReleaseVersion=v1.0.0-alpha-22-gd244a29" -X "github.com/pingcap/dm/pkg/utils.BuildTS=2019-03-08 10:43:21" -X "github.com/pingcap/dm/pkg/utils.GitHash=d244a29b6be9f0db1c1e9330a49263d7711dbeac" -X "github.com/pingcap/dm/pkg/utils.GitBranch=master" -X "github.com/pingcap/dm/pkg/utils.GoVersion=go version go1.11.5 linux/amd64" -X "github.com/pingcap/dm/dm/worker.SampleConfigFile=IyBXb3JrZXIgQ29uZmlndXJhdGlvbi4KCiNsb2cgY29uZmlndXJhdGlvbgpsb2ctbGV2ZWwgPSAiaW5mbyIKbG9nLWZpbGUgPSAiZG0td29ya2VyLmxvZyIKCiNkbS13b3JrZXIgbGlzdGVuIGFkZHJlc3MKd29ya2VyLWFkZHIgPSAiOjgyNjIiCgojc2VydmVyIGlkIG9mIHNsYXZlIGZvciBiaW5sb2cgcmVwbGljYXRpb24KI2VhY2ggaW5zdGFuY2UgKG1hc3RlciBhbmQgc2xhdmUpIGluIHJlcGxpY2F0aW9uIGdyb3VwIHNob3VsZCBoYXZlIGRpZmZlcmVudCBzZXJ2ZXIgaWQKc2VydmVyLWlkID0gMTAxCgojcmVwcmVzZW50cyBhIE15U1FML01hcmlhREIgaW5zdGFuY2Ugb3IgYSByZXBsaWNhdGlvbiBncm91cApzb3VyY2UtaWQgPSAibXlzcWwtcmVwbGljYS0wMSIKCiNmbGF2b3I6IG15c3FsL21hcmlhZGIKZmxhdm9yID0gIm15c3FsIgoKI2RpcmVjdG9yeSB0aGF0IHVzZWQgdG8gc3RvcmUgcmVsYXkgbG9nCnJlbGF5LWRpciA9ICIuL3JlbGF5X2xvZyIKCiNlbmFibGUgZ3RpZCBpbiByZWxheSBsb2cgdW5pdAplbmFibGUtZ3RpZCA9IGZhbHNlCgojY2hhcnNldCBvZiBEU04gb2Ygc291cmNlIG15c3FsL21hcmlhZGIgaW5zdGFuY2UKIyBjaGFyc2V0PSAiIgoKW2Zyb21dCmhvc3QgPSAiMTI3LjAuMC4xIgp1c2VyID0gInJvb3QiCnBhc3N3b3JkID0gIiIKcG9ydCA9IDMzMDYKCiNyZWxheSBsb2cgcHVyZ2Ugc3RyYXRlZ3kKI1twdXJnZV0KI2ludGVydmFsID0gMzYwMAojZXhwaXJlcyA9IDI0CiNyZW1haW4tc3BhY2UgPSAxNQo=" -X "github.com/pingcap/dm/dm/master.SampleConfigFile=IyBNYXN0ZXIgQ29uZmlndXJhdGlvbi4KCiNsb2cgY29uZmlndXJhdGlvbgpsb2ctbGV2ZWwgPSAiaW5mbyIKbG9nLWZpbGUgPSAiZG0tbWFzdGVyLmxvZyIKCiNkbS1tYXN0ZXIgbGlzdGVuIGFkZHJlc3MKbWFzdGVyLWFkZHIgPSAiOjgyNjEiCgojIHJlcGxpY2F0aW9uIGdyb3VwIDwtPiBkbS1Xb3JrZXIgZGVwbG95bWVudCwgd2UnbGwgcmVmaW5lIGl0IHdoZW4gbmV3IGRlcGxveW1lbnQgZnVuY3Rpb24gaXMgYXZhaWxhYmxlCltbZGVwbG95XV0Kc291cmNlLWlkID0gIm15c3FsLXJlcGxpY2EtMDEiCmRtLXdvcmtlciA9ICIxNzIuMTYuMTAuNzI6ODI2MiIKCltbZGVwbG95XV0Kc291cmNlLWlkID0gIm15c3FsLXJlcGxpY2EtMDIiCmRtLXdvcmtlciA9ICIxNzIuMTYuMTAuNzM6ODI2MiIK"' -o bin/dm-worker ./cmd/dm-worker
go: finding github.com/coreos/etcd v3.3.10+incompatible
go: downloading golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
go: downloading google.golang.org/genproto v0.0.0-20190108161440-ae2f86662275
go: downloading github.com/uber/jaeger-lib v1.5.0
go: downloading github.com/opentracing/opentracing-go v1.0.2
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/coreos/etcd v3.3.10+incompatible
go: verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
downloaded: h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
go.sum: h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=
make: *** [dm-worker] Error 1
[root@dba dm]#

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

i'm rebuild that ,and no network exception,but. :

[root@dba dm]# rm -rf go.mod
[root@dba dm]# rm -rf go.sum
[root@dba dm]# go mod init
go: creating new go.mod: module github.com/pingcap/dm
[root@dba dm]# make build
gofmt (simplify)
GO111MODULE=off go get golang.org/x/lint/golint
golint
go: finding github.com/pingcap/tidb-tools/pkg/dbutil latest
go: finding github.com/pingcap/tidb-tools/pkg latest
go: finding github.com/pingcap/tidb-tools v2.1.5+incompatible
go: downloading github.com/pingcap/tidb-tools v2.1.5+incompatible
go: finding github.com/pingcap/parser latest
go: finding github.com/pingcap/parser/format latest
go: finding github.com/pingcap/parser/model latest
go: finding github.com/pingcap/tidb-tools/pkg/check latest
go: finding github.com/pingcap/tidb-tools/pkg/column-mapping latest
go: finding github.com/prometheus/client_golang/prometheus latest
go: finding github.com/gogo/protobuf/proto latest
go: finding github.com/golang/protobuf/jsonpb latest
go: downloading github.com/spf13/cobra v0.0.3
go: finding github.com/golang/protobuf/proto latest
go: finding google.golang.org/grpc v1.19.0
go: finding github.com/pingcap/tidb-tools/pkg/utils latest
go: finding github.com/pingcap/parser/mysql latest
go: finding github.com/siddontang/go-mysql/mysql latest
go: finding github.com/siddontang/go-mysql latest
go: downloading github.com/siddontang/go-mysql v0.0.0-20190303113352-670f74e8daf5
go: finding github.com/pingcap/tidb/infoschema latest
go: finding github.com/pingcap/tidb/ddl latest
go: finding github.com/pingcap/tidb v2.0.11+incompatible
go: downloading github.com/pingcap/tidb v2.0.11+incompatible
go: finding github.com/chzyer/readline latest
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: finding github.com/siddontang/go/sync2 latest
go: finding github.com/siddontang/go latest
go: finding github.com/pingcap/tidb-tools/pkg/filter latest
go: finding github.com/pingcap/parser/terror latest
go: finding github.com/siddontang/go-mysql/replication latest
go: finding golang.org/x/net/context latest
go: finding golang.org/x/net latest
go: downloading golang.org/x/net v0.0.0-20190301231341-16b79f2e4e95
go: finding github.com/pingcap/tidb-tools/pkg/binlog-filter latest
go: finding github.com/pingcap/tidb-tools/pkg/table-router latest
go: finding github.com/pingcap/tidb/types/parser_driver latest
go: finding github.com/pingcap/tidb/types latest
go: finding github.com/pingcap/parser/ast latest
go: finding github.com/pingcap/tidb-tools/pkg/watcher latest
go: finding github.com/siddontang/go/ioutil2 latest
go: downloading google.golang.org/grpc v1.19.0
go: finding golang.org/x/sys/unix latest
go: finding golang.org/x/sys latest
go: downloading golang.org/x/sys v0.0.0-20190308023053-584f3b12f43e
go: finding github.com/prometheus/common/log latest
go: finding github.com/prometheus/common v0.2.0
go: downloading github.com/prometheus/common v0.2.0
go: finding github.com/prometheus/client_golang v0.9.2
go: downloading github.com/prometheus/client_golang v0.9.2
go: finding github.com/golang/protobuf v1.3.0
go: downloading github.com/golang/protobuf v1.3.0
go: finding github.com/gogo/protobuf v1.2.1
go: downloading github.com/gogo/protobuf v1.2.1
go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/go-kit/kit v0.8.0
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding github.com/go-stack/stack v1.8.0
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/pkg/errors v0.8.0
go: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b
go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: downloading golang.org/x/text v0.3.0
go: finding github.com/juju/errors latest
go: finding github.com/pingcap/tipb/go-binlog latest
go: finding github.com/pingcap/tipb latest
go: downloading github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: downloading golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: finding github.com/coreos/etcd/clientv3/concurrency latest
go: finding github.com/google/btree latest
go: downloading github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/pingcap/kvproto/pkg/tikvpb latest
go: finding github.com/pingcap/kvproto/pkg/errorpb latest
go: finding github.com/pingcap/kvproto/pkg/metapb latest
go: finding github.com/pingcap/kvproto/pkg/kvrpcpb latest
go: finding github.com/pingcap/kvproto/pkg latest
go: finding github.com/pingcap/kvproto latest
go: downloading github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9
go: finding github.com/coreos/etcd/mvcc/mvccpb latest
go: finding github.com/pingcap/kvproto/pkg/coprocessor latest
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes latest
go: finding github.com/ngaut/pools latest
go: finding github.com/spaolacci/murmur3 latest
go: finding github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing latest
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: downloading github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/pingcap/tipb/go-tipb latest
go: downloading google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding github.com/cznic/mathutil latest
go: finding github.com/coreos/etcd/clientv3 latest
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/pingcap/pd/pd-client latest
go: downloading github.com/juju/errors v0.0.0-20190207033735-e65537c515d7
go: finding github.com/pingcap/goleveldb/leveldb/iterator latest
go: finding github.com/pingcap/goleveldb/leveldb latest
go: finding github.com/pingcap/goleveldb latest
go: finding github.com/pingcap/goleveldb/leveldb/memdb latest
go: finding github.com/pingcap/goleveldb/leveldb/util latest
go: finding github.com/pingcap/goleveldb/leveldb/comparer latest
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading github.com/spf13/pflag v1.0.3
go: finding github.com/uber/jaeger-client-go/config latest
go: finding github.com/pingcap/pd v2.1.5+incompatible
go: downloading github.com/pingcap/pd v2.1.5+incompatible
go: finding github.com/grpc-ecosystem/go-grpc-middleware/tracing latest
go: finding github.com/coreos/etcd/mvcc latest
go: finding github.com/coreos/etcd/etcdserver/api/v3rpc latest
go: finding github.com/coreos/etcd v3.3.12+incompatible
go: finding github.com/coreos/etcd/etcdserver/api latest
go: finding github.com/coreos/etcd/etcdserver latest
go: downloading github.com/coreos/etcd v3.3.12+incompatible
go: downloading github.com/pkg/errors v0.8.0
go: downloading google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f
go: finding github.com/remyoudompheng/bigfft latest
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
go: finding github.com/uber/jaeger-lib/metrics latest
go: finding github.com/ngaut/sync2 latest
go: finding github.com/golang/snappy v0.0.1
go: downloading github.com/golang/snappy v0.0.1
go: finding github.com/uber/jaeger-lib v2.0.0+incompatible
go: downloading github.com/uber/jaeger-lib v2.0.0+incompatible
build github.com/pingcap/dm/cmd/dm-worker: cannot find module for path github.com/pingcap/pd/pd-client
vet
dm/master/config.go:112: declaration of "err" shadows declaration at dm/master/config.go:98
dm/worker/config.go:156: declaration of "err" shadows declaration at dm/worker/config.go:142
bash -x ./tests/wait_for_mysql.sh

  • source ./tests/util.sh
  • check_db_status '' '' mysql
  • true
  • mysqladmin -h '' -P '' -u root ping
  • break
  • echo 'mysql is alive'
    mysql is alive
    mkdir -p /tmp/dm_test
    go: finding github.com/pingcap/tidb-tools/pkg/filter latest
    go: finding github.com/pingcap/tidb-tools/pkg/watcher latest
    go: finding github.com/pingcap/tidb-tools/pkg latest
    go: finding github.com/pingcap/pd/pd-client latest
    go: finding github.com/pingcap/tidb/types/parser_driver latest
    go: finding github.com/pingcap/tidb/types latest
    build github.com/pingcap/dm/cmd/dm-worker: cannot find module for path github.com/pingcap/pd/pd-client
    can't load package: package github.com/pingcap/dm: unknown import path "github.com/pingcap/dm": cannot find module providing package github.com/pingcap/dm
    make: *** [test] Error 1
    [root@dba dm]#

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

remove go.mod does not work is as expected, because of some dependency in tidb related repos. I'm trying to build in a clean go1.11.5 environment, I will feedback ASAP.

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

I test on go1.11.5 and meet the same error, you can build with the following steps temporarily

rm go.sum
make build

We will continue to follow up on this issue, thanks for your feedback

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

I test on go1.11.5 and meet the same error, you can build with the following steps temporarily

rm go.sum
make build

We will continue to follow up on this issue, thanks for your feedback

it doesn't work .. my god !

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

what's the error message then? I test with go1.11.5 and it works. It does have some checksum diff, including

-github.com/coreos/etcd v3.3.10+incompatible h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=
+github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
-github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 h1:BWIsLfhgKhV5g/oF34aRjniBHLTZe5DNekSjbAjIS6c=
+github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c=

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

prior versions of go 1.11 have incorrect checksums. If you compiled with them you need to run GO111MODULE=on go clean -modcache
thankyou .
i clean cache before 'make build', but aways fail to :
[root@dba dm]# GO111MODULE=on go clean -modcache
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/golang/snappy v0.0.1
go: finding github.com/juju/errors v0.0.0-20190207033735-e65537c515d7
go: finding github.com/coreos/etcd v3.3.12+incompatible
go: finding github.com/golang/protobuf v1.3.0
go: finding github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
go: finding github.com/twinj/uuid v1.0.0
go: finding github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: finding gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/siddontang/go-mysql v0.0.0-20190309121619-7263f5610b7a
go: finding github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: finding github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: finding github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/pingcap/tidb-tools v2.1.5+incompatible
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/prometheus/common v0.2.0
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9
go: finding github.com/pingcap/parser v0.0.0-20190305083139-b478256a6451
go: finding github.com/prometheus/client_golang v0.9.2
go: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/pingcap/tidb v2.0.11+incompatible
go: finding github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/prometheus/client_golang v0.9.1
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/go-kit/kit v0.8.0
go: finding github.com/uber/jaeger-client-go v2.15.0+incompatible
go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding github.com/pingcap/errors v0.11.0
go: finding github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/satori/go.uuid v1.2.0
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: finding github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e
go: finding github.com/go-stack/stack v1.8.0
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/sirupsen/logrus v1.3.0
go: finding github.com/opentracing/opentracing-go v1.0.2
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/stretchr/objx v0.1.1
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/davecgh/go-spew v1.1.1
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: finding github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7
go: finding github.com/go-sql-driver/mysql v1.4.1
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
go: finding google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58
go: finding github.com/uber/jaeger-lib v2.0.0+incompatible
can't load package: package github.com/pingcap/dm: unknown import path "github.com/pingcap/dm": cannot find module providing package github.com/pingcap/dm
[root@dba dm]#
[root@dba dm]#
[root@dba dm]# make build
gofmt (simplify)
GO111MODULE=off go get golang.org/x/lint/golint
golint
go: finding github.com/twinj/uuid v1.0.0
go: finding github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: finding github.com/golang/snappy v0.0.1
go: finding github.com/coreos/etcd v3.3.12+incompatible
go: finding github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
go: finding github.com/golang/protobuf v1.3.0
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/juju/errors v0.0.0-20190207033735-e65537c515d7
go: finding gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/siddontang/go-mysql v0.0.0-20190309121619-7263f5610b7a
go: finding github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: finding github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: finding github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
go: finding github.com/pingcap/tidb v2.0.11+incompatible
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: finding github.com/pingcap/tidb-tools v2.1.5+incompatible
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9
go: finding github.com/pingcap/parser v0.0.0-20190305083139-b478256a6451
go: finding github.com/prometheus/client_golang v0.9.2
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/uber/jaeger-lib v2.0.0+incompatible
go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: finding github.com/pingcap/errors v0.11.0
go: finding github.com/go-sql-driver/mysql v1.4.1
go: finding github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: finding github.com/sirupsen/logrus v1.3.0
go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
go: finding github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/prometheus/common v0.2.0
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/stretchr/objx v0.1.1
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/satori/go.uuid v1.2.0
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7
go: finding github.com/opentracing/opentracing-go v1.0.2
go: finding github.com/uber/jaeger-client-go v2.15.0+incompatible
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f
go: finding github.com/go-stack/stack v1.8.0
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/stretchr/testify v1.2.2
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding github.com/kisielk/errcheck v1.1.0
go: finding google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding github.com/go-kit/kit v0.8.0
go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/prometheus/client_golang v0.9.1
go: finding github.com/davecgh/go-spew v1.1.1
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding github.com/kisielk/gotool v1.0.0
go: downloading github.com/pingcap/tidb v2.0.11+incompatible
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading github.com/pingcap/tidb-tools v2.1.5+incompatible
go: downloading github.com/siddontang/go-mysql v0.0.0-20190309121619-7263f5610b7a
go: downloading github.com/pingcap/parser v0.0.0-20190305083139-b478256a6451
go: downloading golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
go: downloading github.com/golang/protobuf v1.3.0
go: finding github.com/pingcap/tidb-tools/pkg/filter latest
go: downloading github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: downloading golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: downloading github.com/gogo/protobuf v1.2.1
go: downloading github.com/pingcap/errors v0.11.0
go: downloading github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
go: downloading github.com/spf13/cobra v0.0.3
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/soheilhy/cmux v0.1.4
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/prometheus/client_golang v0.9.2
go: downloading github.com/sirupsen/logrus v1.3.0
go: downloading github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading github.com/prometheus/common v0.2.0
go: downloading github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: downloading github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: finding github.com/pingcap/tidb/types/parser_driver latest
go: downloading github.com/coreos/etcd v3.3.12+incompatible
go: downloading github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
go: downloading github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: downloading github.com/juju/errors v0.0.0-20190207033735-e65537c515d7
go: finding github.com/pingcap/tidb-tools/pkg/watcher latest
go: downloading github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e
go: downloading google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: downloading github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
go: downloading github.com/twinj/uuid v1.0.0
go: downloading github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9
go: downloading github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: downloading golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: downloading github.com/uber/jaeger-client-go v2.15.0+incompatible
go: downloading github.com/pkg/errors v0.8.0
go: downloading github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: downloading github.com/opentracing/opentracing-go v1.0.2
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/golang/snappy v0.0.1
go: downloading google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f
go: downloading github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: downloading github.com/uber/jaeger-lib v2.0.0+incompatible
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading gopkg.in/yaml.v2 v2.2.1
go: downloading github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
go: finding github.com/pingcap/pd/pd-client latest
go: finding github.com/pingcap/tidb-tools/pkg latest
go: finding github.com/pingcap/pd v2.1.5+incompatible
go: downloading github.com/pingcap/pd v2.1.5+incompatible
go: finding github.com/pingcap/tidb/types latest
build github.com/pingcap/dm/cmd/dm-worker: cannot find module for path github.com/pingcap/pd/pd-client
vet
dm/master/config.go:112: declaration of "err" shadows declaration at dm/master/config.go:98
dm/worker/config.go:156: declaration of "err" shadows declaration at dm/worker/config.go:142
bash -x ./tests/wait_for_mysql.sh

  • source ./tests/util.sh
  • check_db_status '' '' mysql
  • true
  • mysqladmin -h '' -P '' -u root ping
  • break
  • echo 'mysql is alive'
    mysql is alive
    mkdir -p /tmp/dm_test
    go: finding github.com/pingcap/tidb-tools/pkg/filter latest
    go: finding github.com/pingcap/tidb-tools/pkg/watcher latest
    go: finding github.com/pingcap/tidb-tools/pkg latest
    go: finding github.com/pingcap/pd/pd-client latest
    go: finding github.com/pingcap/tidb/types/parser_driver latest
    go: finding github.com/pingcap/tidb/types latest
    build github.com/pingcap/dm/cmd/dm-worker: cannot find module for path github.com/pingcap/pd/pd-client
    can't load package: package github.com/pingcap/dm: unknown import path "github.com/pingcap/dm": cannot find module providing package github.com/pingcap/dm
    make: *** [test] Error 1
    [root@dba dm]#
    [root@dba dm]#

i think :
Is my internet unaccessable to all modules
?

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

and aways raise err:

[root@dba dm]# make dmctl
CGO_ENABLED=0 GO111MODULE=on go build -ldflags '-X "github.com/pingcap/dm/pkg/utils.ReleaseVersion=v1.0.0-alpha-22-gd244a29-dev" -X "github.com/pingcap/dm/pkg/utils.BuildTS=2019-03-11 03:52:19" -X "github.com/pingcap/dm/pkg/utils.GitHash=d244a29b6be9f0db1c1e9330a49263d7711dbeac" -X "github.com/pingcap/dm/pkg/utils.GitBranch=master" -X "github.com/pingcap/dm/pkg/utils.GoVersion=go version go1.11.5 linux/amd64" -X "github.com/pingcap/dm/dm/worker.SampleConfigFile=IyBXb3JrZXIgQ29uZmlndXJhdGlvbi4KCiNsb2cgY29uZmlndXJhdGlvbgpsb2ctbGV2ZWwgPSAiaW5mbyIKbG9nLWZpbGUgPSAiZG0td29ya2VyLmxvZyIKCiNkbS13b3JrZXIgbGlzdGVuIGFkZHJlc3MKd29ya2VyLWFkZHIgPSAiOjgyNjIiCgojc2VydmVyIGlkIG9mIHNsYXZlIGZvciBiaW5sb2cgcmVwbGljYXRpb24KI2VhY2ggaW5zdGFuY2UgKG1hc3RlciBhbmQgc2xhdmUpIGluIHJlcGxpY2F0aW9uIGdyb3VwIHNob3VsZCBoYXZlIGRpZmZlcmVudCBzZXJ2ZXIgaWQKc2VydmVyLWlkID0gMTAxCgojcmVwcmVzZW50cyBhIE15U1FML01hcmlhREIgaW5zdGFuY2Ugb3IgYSByZXBsaWNhdGlvbiBncm91cApzb3VyY2UtaWQgPSAibXlzcWwtcmVwbGljYS0wMSIKCiNmbGF2b3I6IG15c3FsL21hcmlhZGIKZmxhdm9yID0gIm15c3FsIgoKI2RpcmVjdG9yeSB0aGF0IHVzZWQgdG8gc3RvcmUgcmVsYXkgbG9nCnJlbGF5LWRpciA9ICIuL3JlbGF5X2xvZyIKCiNlbmFibGUgZ3RpZCBpbiByZWxheSBsb2cgdW5pdAplbmFibGUtZ3RpZCA9IGZhbHNlCgojY2hhcnNldCBvZiBEU04gb2Ygc291cmNlIG15c3FsL21hcmlhZGIgaW5zdGFuY2UKIyBjaGFyc2V0PSAiIgoKW2Zyb21dCmhvc3QgPSAiMTI3LjAuMC4xIgp1c2VyID0gInJvb3QiCnBhc3N3b3JkID0gIiIKcG9ydCA9IDMzMDYKCiNyZWxheSBsb2cgcHVyZ2Ugc3RyYXRlZ3kKI1twdXJnZV0KI2ludGVydmFsID0gMzYwMAojZXhwaXJlcyA9IDI0CiNyZW1haW4tc3BhY2UgPSAxNQo=" -X "github.com/pingcap/dm/dm/master.SampleConfigFile=IyBNYXN0ZXIgQ29uZmlndXJhdGlvbi4KCiNsb2cgY29uZmlndXJhdGlvbgpsb2ctbGV2ZWwgPSAiaW5mbyIKbG9nLWZpbGUgPSAiZG0tbWFzdGVyLmxvZyIKCiNkbS1tYXN0ZXIgbGlzdGVuIGFkZHJlc3MKbWFzdGVyLWFkZHIgPSAiOjgyNjEiCgojIHJlcGxpY2F0aW9uIGdyb3VwIDwtPiBkbS1Xb3JrZXIgZGVwbG95bWVudCwgd2UnbGwgcmVmaW5lIGl0IHdoZW4gbmV3IGRlcGxveW1lbnQgZnVuY3Rpb24gaXMgYXZhaWxhYmxlCltbZGVwbG95XV0Kc291cmNlLWlkID0gIm15c3FsLXJlcGxpY2EtMDEiCmRtLXdvcmtlciA9ICIxNzIuMTYuMTAuNzI6ODI2MiIKCltbZGVwbG95XV0Kc291cmNlLWlkID0gIm15c3FsLXJlcGxpY2EtMDIiCmRtLXdvcmtlciA9ICIxNzIuMTYuMTAuNzM6ODI2MiIK"' -o bin/dmctl ./cmd/dm-ctl
go: finding github.com/pingcap/tidb-tools/pkg/filter latest
go: finding github.com/pingcap/tidb-tools/pkg latest
go: finding github.com/pingcap/tidb/types/parser_driver latest
go: finding github.com/pingcap/tidb/types latest
pkg/parser/common.go:25:2: unknown import path "github.com/pingcap/tidb-tools/pkg/filter": cannot find module providing package github.com/pingcap/tidb-tools/pkg/filter
pkg/parser/common.go:26:2: unknown import path "github.com/pingcap/tidb/types/parser_driver": cannot find module providing package github.com/pingcap/tidb/types/parser_driver
make: *** [dmctl] Error 1
[root@dba dm]#

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

This is because you get wrong tidb deps. Firstly you should not change the go.mod file. If you build with go version >= 1.11.4, you can do as following

rm go.sum
GO111MODULE=on go clean -modcache
make build

besides if you run with make build, you shoud setup a MySQL5.7 and export the MYSQL_HOST and MYSQL_PORT to the right value. ref: https://github.com/pingcap/dm/tree/master/tests#unit-test

from dm.

YuanDdQiao avatar YuanDdQiao commented on August 22, 2024

thank you all ,thank you very much .
anyway, it's work now.

i'm re-clone dm-package,and rm go.sum ,and make dmctl 、 dm-worker etc,
and then return bin success .

from dm.

amyangfei avatar amyangfei commented on August 22, 2024

Thanks for you feedback, we are moving forward to support DM with higher go version, you can track this issue: #71
I will close this issue now.

from dm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.