Skip to content

Commit

Permalink
remove golang version check
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Feb 28, 2018
1 parent f303aa0 commit 4f773b6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,24 +195,6 @@ EOF
exit 2
fi

# Travis continuous build uses a head go release that doesn't report
# a version number, so we skip this check on Travis. It's unnecessary
# there anyway.
if [[ "${TRAVIS:-}" != "true" ]]; then
local go_version
go_version=($(go version))
if [[ "${go_version[2]}" < "go1.4" ]]; then
cat <<EOF
Detected go version: ${go_version[*]}.
S2I requires go version 1.4 or greater.
Please install Go version 1.4 or later.
EOF
exit 2
fi
fi

# For any tools that expect this to be set (it is default in golang 1.6),
# force vendor experiment.
export GO15VENDOREXPERIMENT=1
Expand Down

0 comments on commit 4f773b6

Please sign in to comment.