-
Notifications
You must be signed in to change notification settings - Fork 773
chore: replace govendor with go mod and update docs #647
Conversation
Thanks for your contribution. 🍻 @yeya24 |
It is a big change to the project. |
@allencloud |
Since we're hopping on the go mod train, maybe we can consider not checking the Of course not checking in
|
@allencloud @lowzj WDYT? |
@lowzj @allencloud @inoc603 Now that we have updated the go version to 1.12.6, so let's make this PR as a break change for release 0.4.1. WDYT? |
82b9a8f
to
1f21107
Compare
I agree with that. Even though |
Currently I met some problems in fixing ci.
|
Makefile
Outdated
@@ -94,13 +100,33 @@ unit-test: build-dirs | |||
./hack/unit-test.sh | |||
.PHONY: unit-test | |||
|
|||
integration-test: | |||
@go build ./test |
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.
s/ @go build ./test
/ @go test ./test
? Maybe it's the cause of the failure of the integration test.
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.
Thanks for this help!
1a0fbc6
to
dac840c
Compare
Makefile
Outdated
go-mod-vendor: | ||
@echo "Begin to vendor go mod dependency" | ||
@go mod vendor | ||
.PHONY: go-mod-tidy |
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.
go-mod-vendor?
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.
Done.
hack/env.sh
Outdated
@@ -24,3 +24,6 @@ GOOS=$(go env GOOS) | |||
GOARCH=$(go env GOARCH) | |||
export GOOS | |||
export GOARCH | |||
|
|||
export GO111MODULE=on | |||
export GOPROXY=https://goproxy.io |
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.
Add a newline at end of file.
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.
Done.
Codecov Report
@@ Coverage Diff @@
## master #647 +/- ##
==========================================
+ Coverage 48.23% 48.25% +0.01%
==========================================
Files 99 99
Lines 5896 5896
==========================================
+ Hits 2844 2845 +1
Misses 2827 2827
+ Partials 225 224 -1
Continue to review full report at Codecov.
|
Signed-off-by: yeya24 <[email protected]>
dac840c
to
8ae6c74
Compare
LGTM. And @lowzj PTAL again. |
chore: replace govendor with go mod and update docs
chore: replace govendor with go mod and update docs
* chore: update version Signed-off-by: Gaius <[email protected]> * chore: update git version Signed-off-by: Gaius <[email protected]>
Ⅰ. Describe what this PR did
Replace govendor with go mod since we have already updated to go 1.12.6.
Ⅱ. Does this pull request fix one issue?
fix second part of #634
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews