-
Notifications
You must be signed in to change notification settings - Fork 56
Conversation
Go >= 1.11 supports go modules |
skuba requires >= go1.12 for building. This PR make sure `make` check that requirement. Signed-off-by: Nirmoy Das <ndas@suse.de>
208846c
to
63a0be4
Compare
Can you elaborate on that? in 1.11 modules are experimental. Did that change in 1.12? |
@jhsiaosuse Thanks. Updated. |
AFAIK, golang 1.12 does not change go module related but enhance tools related. I have used go module from 1.11, everything gonna well. |
With root@a902dcfaa641:/go/src/github.com/nirmoy/skuba# git rev-parse HEAD
63a0be4e721301401eed3e6aa446f63b9d50014e
root@a902dcfaa641:/go/src/github.com/nirmoy/skuba# go version
go version go1.11.12 linux/amd64
root@a902dcfaa641:/go/src/github.com/nirmoy/skuba# make
FATAL: Go version should be >= 1.12.x
make: *** [Makefile:77: go-version-check] Error 1 With root@0ab3b5df474e:/go/src/github.com/nirmoy/skuba# git rev-parse HEAD
63a0be4e721301401eed3e6aa446f63b9d50014e
root@0ab3b5df474e:/go/src/github.com/nirmoy/skuba# go version
go version go1.12.7 linux/amd64
root@0ab3b5df474e:/go/src/github.com/nirmoy/skuba# make
GO111MODULE=on go install -mod=vendor -ldflags "-X=github.com/SUSE/skuba/pkg/skuba.Version=0.8.1 -X=github.com/SUSE/skuba/pkg/skuba.Commit=63a0be4 -X=github.com/SUSE/skuba/pkg/skuba.BuildDate
=20190725" -tags development ./cmd/...
rm -f /go/bin/kubectl-caasp
ln -s /go/bin/skuba /go/bin/kubectl-caasp LGTM. Thank you @nirmoy. |
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.
Looks good to me. 👍
See my "report"
There is a hash sum calculation bug in go 1.11 which will cause a mismatch in go.sum between 1.11 and 1.12: golang/go#29278 To avoid issues I would stick to 1.12 :) |
Thanks, @saschagrunert, I met this issue before. |
skuba requires >= go1.12 for building.
This PR make sure make check that requirement.
Before:
After: