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

Improve govendor testing #1623

Merged
merged 5 commits into from May 2, 2017
Merged

Improve govendor testing #1623

merged 5 commits into from May 2, 2017

Conversation

sapk
Copy link
Member

@sapk sapk commented Apr 27, 2017

Use govendor list +outside +unused for finding missing or unused deps and govendor status for catching modified vendor.

Ref : #1620

Use `govendor list +outside +unused` for finding missing or unused deps and govendor status for catching modified vendor.
@lunny lunny added this to the 1.2.0 milestone Apr 27, 2017
@sapk
Copy link
Member Author

sapk commented Apr 27, 2017

This should failed at CI and be ok after #1620. So we could merge it after.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 27, 2017
@appleboy
Copy link
Member

@sapk rebase master. I already merged #1620

@lunny
Copy link
Member

lunny commented Apr 27, 2017

@sapk but seems CI is not failed.

@sapk
Copy link
Member Author

sapk commented Apr 27, 2017

@lunny I need to count line of govendor list +outside +unused since it return 0 every time.

@sapk sapk changed the title Improve govendor testing [WIP] Improve govendor testing Apr 27, 2017
@@ -1,6 +1,6 @@
{
"comment": "",
"ignore": "test",
"ignore": "test appengine",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this added?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we have un-vendored deps relative to appengine. I think that it's a sub deps but I haven't found/search for it. I don't even know if we (plan to) support appengine. So this could be a good place to discuss about it ^^

Makefile Outdated
@@ -84,7 +84,13 @@ test-vendor:
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/kardianos/govendor; \
fi
govendor status +outside +unused || exit 1
govendor list +unused | tee /tmp/wc-gitea-unused
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use $TMPDIR instead (same for the next command-block)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The var TMPDIR (or TEMPDIR) seems to not be set when I run it via drone exec. I will add TMPDIR := $(shell mktemp -d)

@sapk sapk changed the title [WIP] Improve govendor testing Improve govendor testing May 1, 2017
@lunny
Copy link
Member

lunny commented May 2, 2017

LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 2, 2017
@appleboy
Copy link
Member

appleboy commented May 2, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 2, 2017
@appleboy
Copy link
Member

appleboy commented May 2, 2017

@bkcsoft waiting for your confirm.

@bkcsoft bkcsoft merged commit bb5f694 into go-gitea:master May 2, 2017
@sapk sapk deleted the patch-1 branch June 17, 2017 17:14
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants