From be0a0f7fe3d4e95f98c2942a347e4e6b42d4f930 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 25 Oct 2018 11:35:43 +0100 Subject: [PATCH] CI: Use specific version of xurls utility Build the version of `xurls` specified in the runtimes versions database to avoid problems; the latest version of `xurls` requires golang 1.10.3 but that is not available in the stable branches. Fixes #855. Signed-off-by: James O. D. Hunt --- .ci/static-checks.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.ci/static-checks.sh b/.ci/static-checks.sh index 9c72ca386d..dcd0dfd391 100755 --- a/.ci/static-checks.sh +++ b/.ci/static-checks.sh @@ -385,7 +385,16 @@ check_docs() if [ ! "$(command -v $cmd)" ] then info "Installing $cmd utility" - go get -u "github.com/mvdan/xurls/cmd/${cmd}" + + local version + local url + local dir + + version=$(get_test_version "externals.xurls.version") + url=$(get_test_version "externals.xurls.url") + dir=$(echo "$url"|sed 's!https://!!g') + + build_version "${dir}" "" "${version}" fi info "Checking documentation"