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

Check "x/net/context" with go vet like "context" #1490

Merged
merged 3 commits into from
Aug 29, 2017
Merged

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Aug 29, 2017

Includes a signficant revamp of .travis.yml to execute a separate script for
all of the things we check before allowing a merge.

Fixes #1484

Includes a signficant revamp of .travis.yml to execute a separate script for
all of the things we check before allowing a merge.
vet.sh Outdated
trap cleanup EXIT

# Only run these tests on Go 1.8 or manually.
if [[ "$TRAVIS" = "true" && "$TRAVIS_GO_VERSION" != 1.8* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

We are going to change this to 1.9* shortly.
I wonder if there's an easy way to find what the latest go version is...

Copy link
Member Author

Choose a reason for hiding this comment

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

I could find no way.

Since this requires coordination with .travis.yml, how about let's make the script run unconditionally in travis but only launch it conditionally on the version?

@@ -20,7 +20,6 @@ proto:
echo "error: protoc not installed" >&2; \
exit 1; \
fi
go get -u -v github.com/golang/protobuf/protoc-gen-go golang.org/x/tools/cmd/stringer
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep this?

Though this works on travis, someone trying to run make proto locally may fail because of these two missing packages...

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm fine with reverting this, but then we should change make proto in vet.sh to run go generate. Otherwise you end up with the latency of go get every time you run vet.sh, which is not really desirable.

Alternatively, we can check $GOPATH/..... for these two things and fail with a friendlier error if they are not found.

Thoughts?

@dfawley dfawley merged commit d687003 into grpc:master Aug 29, 2017
@dfawley dfawley deleted the context branch August 29, 2017 22:43
@menghanl menghanl added the 1.6 label Aug 30, 2017
menghanl pushed a commit to menghanl/grpc-go that referenced this pull request Aug 30, 2017
* Check "x/net/context" with `go vet` like "context"

Includes a signficant revamp of .travis.yml to execute a separate script for
all of the things we check before allowing a merge.

* fix bug in benchmain
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants