From d6d9040d13aa74210cf6f596ab688d9b99766fba Mon Sep 17 00:00:00 2001
From: Yuki Okushi <huyuumi.dev@gmail.com>
Date: Tue, 30 Jun 2020 10:13:03 +0900
Subject: [PATCH] Make semver check workable

---
 ci/semver.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/ci/semver.sh b/ci/semver.sh
index 35715dcf..1b0a7f64 100644
--- a/ci/semver.sh
+++ b/ci/semver.sh
@@ -13,10 +13,15 @@ if ! rustc --version | grep -E "nightly" ; then
     exit 1
 fi
 
+# FIXME: Pin nightly version to make semverver compile.
+NIGHTLY_DATE=nightly-2020-06-18
+
+rustup override set ${NIGHTLY_DATE}
+
 rustup component add rustc-dev llvm-tools-preview
 
 # FIXME: Use upstream once it gets rustup.
-cargo +nightly install semververfork
+cargo +${NIGHTLY_DATE} install semververfork
 
 TARGETS=
 case "${OS}" in
@@ -73,5 +78,5 @@ for TARGET in $TARGETS; do
     done
 
     # FIXME: Use upstream once it gets rustup.
-    cargo +nightly semverfork --api-guidelines --target="${TARGET}"
+    cargo +${NIGHTLY_DATE} semverfork --api-guidelines --target="${TARGET}"
 done
-- 
GitLab