-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
*: migrate dependency management to Go1.11 module #8054
Conversation
Makefile
Outdated
|
||
build: | ||
$(GOBUILD) | ||
|
||
# The retool tools.json is setup from hack/retool-install.sh | ||
check-setup: | ||
@which retool >/dev/null 2>&1 || go get github.com/twitchtv/retool | ||
@retool sync | ||
@GO111MODULES=off retool sync |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GO111MODULE
/run-all-tests |
/run-all-tests tidb-test=pr/639 |
/run-all-tests tidb-test=pr/639 |
I nearly make all test pass, but after merge master and resolve conflicts, I find tidb-tools have introduce module and it use a |
/run-all-tests tidb-test=pr/639 |
1 similar comment
/run-all-tests tidb-test=pr/639 |
/run-common-test tidb-test=pr/639 |
/run-all-tests tidb-test=pr/639 |
/run-common-test tidb-test=pr/639 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
One thing that can help avoid disrupting workflows is to do the switch but to use go mod's vendoring support (we did this in pd). |
Good suggestion, we can adopt it in tidb-tools. @gregwebs
|
google.golang.org/appengine v1.2.0 // indirect | ||
google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2 // indirect | ||
google.golang.org/grpc v1.16.0 | ||
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
I think go.mod needs a more thorough review still. We may have a repeat of the same issue we had in PD of pulling in some odd dependencies tikv/pd#1269 (review) |
I won't be sending PRs any time soon. You should be able to ask @disksing what he did. |
github.com/cockroachdb/cmux v0.0.0-20170110192607-30d10be49292 // indirect | ||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect | ||
github.com/coreos/bbolt v1.3.1-coreos.6 // indirect | ||
github.com/coreos/etcd v3.3.10+incompatible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there is an incompatible
? Does it mean that we have dependencies that import different versions of etcd?
@gregwebs In fact, in the case where the vendor is deleted, it is difficult to know the difference between the dependencies used by go.mod and the previous vendor dependencies. This PR may have inadvertently changed a lot of dependent versions. |
What problem does this PR solve?
Fix #7922
What is changed and how it works?
go mod init
vendor
directoryutil/logutil
to fix CICheck List
Tests
Side effects
@disksing @lysu