Repository navigation
Check for golang 1.8. - #15367
Check for golang 1.8.#15367
Conversation
|
You might want to update |
|
Fixes #15270 Would love to see this DRYed out into a common function. You might find you need to update the CI AMIs as well. The alternative is to remove all checking (which David meant to do). |
|
The #15270 says "fix So are we to bring it back or remove the version checks completely? |
| local go_version | ||
| go_version=($(go version)) | ||
| if [[ "${go_version[2]}" != go1.7* ]]; then | ||
| if [[ "${go_version[2]}" != go1.8* ]]; then |
There was a problem hiding this comment.
have the vendored builds been updated to work with go1.8? I know there was fixup work in kube that was needed
There was a problem hiding this comment.
Also disregard my comment about a common utility. I misread the diff and thought all these changes were in Origin. NACK to changing these vendored files - we should let them change as we rebase newer versions of the dependencies.
There was a problem hiding this comment.
Removed changes from cmd/cluster-capacity/go/src/github.com/kubernetes-incubator/cluster-capacity/hack/lib/util/golang.sh and cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/hack/lib/util/golang.sh, only changing hack/lib/util/golang.sh.
|
We disabled the check as we didn't have a way to update it on one set of AMIs to be at 1.7 for |
|
Rebased on master, only changing |
I came across the error when running |
I don't claim this change is all that is needed. I've hit issue when running make check. I never hit that binaries.sh code path, that's why I'm not proposing change there.
|
Another question is, why are there two distinct check codes (and values) there for seemingly the same thing? Shouldn't |
|
You're free to fix it that way :) |
|
Actually, one check is about equality and the other checks "less than", so I just bumped the version value in both places. Plus rebased on master -> a0ff440. |
|
/lgtm |
|
/retest |
| os::log::info "Detected go version: ${go_version[*]}." | ||
| if [[ -z "${PERMISSIVE_GO:-}" ]]; then | ||
| os::log::error "Please install Go version 1.7 or use PERMISSIVE_GO=y to bypass this check." | ||
| os::log::error "Please install Go version 1.8 or use PERMISSIVE_GO=y to bypass this check." |
There was a problem hiding this comment.
This needs to be os::log::fatal -- the conversation earlier was re: the fact that David made this check a no-op in the reabse (see the return 0 below).
There was a problem hiding this comment.
Please use os::log::fatal. The original impl was correct when it was written, before os::log::fatal existed, but is not now.
There was a problem hiding this comment.
Changed to os::log:fatal, rebased -> cc3b0b0.
|
/retest |
|
Please squash before we label to merge |
|
Squashed into ad2f005. |
| os::log::error "Please install Go version 1.7 or use PERMISSIVE_GO=y to bypass this check." | ||
| return 0 | ||
| os::log::fatal "Please install Go version 1.8 or use PERMISSIVE_GO=y to bypass this check." | ||
| return 1 |
* Addressing [INFO] Detected go version: go version go1.8.3 linux/amd64. [ERROR] Please install Go version 1.7 or use PERMISSIVE_GO=y to bypass this check. with $ rpm -q golang golang-1.8.3-2.fc26.x86_64 $ go version go version go1.8.3 linux/amd64 * Revert "disable go version checking" This reverts commit 715e2f6. * Using os::log::fatal -- the original impl was correct when it was written, before os::log::fatal existed, but is not now.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adelton, soltysh, stevekuznetsov The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/test extended_conformance_gce |
|
Automatic merge from submit-queue |
Fixes #15270
Addressing
with