mirror of
https://github.com/containers/skopeo.git
synced 2025-06-29 08:07:37 +00:00
Fix test suite failures with go >= 1.10
The hack/common.sh script contains local go_version go_version=($(go version)) if [[ "${go_version[2]}" < "go1.5" ]]; then # fail fi which does a lexicographic string comparison, and fails with 1.10. Just drop it, the fedora:latest image is not likely to revert to 1.5.
This commit is contained in:
parent
ab2bc6e8d1
commit
ea23621c70
@ -32,6 +32,8 @@ RUN set -x \
|
||||
RUN set -x \
|
||||
&& export GOPATH=$(mktemp -d) \
|
||||
&& git clone --depth 1 -b v1.5.0-alpha.3 git://github.com/openshift/origin "$GOPATH/src/github.com/openshift/origin" \
|
||||
# The sed edits out a "go < 1.5" check which works incorrectly with go ≥ 1.10. \
|
||||
&& sed -i -e 's/\[\[ "\${go_version\[2]}" < "go1.5" ]]/false/' "$GOPATH/src/github.com/openshift/origin/hack/common.sh" \
|
||||
&& (cd "$GOPATH/src/github.com/openshift/origin" && make clean build && make all WHAT=cmd/dockerregistry) \
|
||||
&& cp -a "$GOPATH/src/github.com/openshift/origin/_output/local/bin/linux"/*/* /usr/local/bin \
|
||||
&& cp "$GOPATH/src/github.com/openshift/origin/images/dockerregistry/config.yml" /atomic-registry-config.yml \
|
||||
|
Loading…
Reference in New Issue
Block a user