-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Test with Go 1.12 #927
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
Test with Go 1.12 #927
Conversation
Makefile
Outdated
go get golang.org/x/sys/unix | ||
go get golang.org/x/sys/windows | ||
|
||
.PHONY: \ |
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.
Isn't .PHONY supposed to be at the top of the 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.
No, I don't think so. See for example https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
.travis.yml
Outdated
@@ -6,10 +6,7 @@ matrix: | |||
include: | |||
- go: 1.10.x | |||
install: | |||
- go get github.com/stretchr/testify/assert |
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.
Instead of introducing a new Makefile, which doesn't do much, how about adding a before_install block
that is common to all blocks? https://docs.travis-ci.com/user/customizing-the-build/
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.
Won't that block be executed for the go module builds as well? I didn't add one because I don't wan't a go get
to interfere or pollute the namespace before go mod download
is executed.
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.
Ah, you're right. Good thinking.
Makefile
Outdated
@@ -0,0 +1,8 @@ | |||
installtestdeps: |
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.
I'd rather not add a makefile for just a single phony target.
Updated the PR to not use a Makefile. |
@ceh thanks for your contribution |
Test with Go 1.12
Add Go 1.12 to Travis CI build matrix.
AppVeyor doesn't seem to support Go 1.12 out of the box yet according to https://www.appveyor.com/docs/windows-images-software/#golang, deferring for later.