From 871a6bdcdbc1b2c60b146784687379abc2ed0986 Mon Sep 17 00:00:00 2001 From: David Barri Date: Tue, 7 Sep 2021 07:47:05 +1000 Subject: [PATCH] Fix api report validation It stopped working because we stopped regenerating the api reports from CI. --- api-reports/validate | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api-reports/validate b/api-reports/validate index 37f3e6627..739c9f3ec 100755 --- a/api-reports/validate +++ b/api-reports/validate @@ -1,14 +1,17 @@ #!/bin/bash set -euo pipefail -cd "$(dirname "$0")" [ $# -ne 1 ] && echo "Usage: $0 " && exit 1 +cd "$(dirname "$0")/.." +sbt -DCI=1 "++$1" dom/scalafix + +cd "$(dirname "$0")" series="${1%.*}" file="${series/./_}.txt" echo -n "Validating $file ... " -help='Run `sbt +compile` and check in the differences to the '"$(basename "$0") directory" +help='Run `sbt prePR` and check in the differences to the '"$(basename "$0") directory" if [ ! -e "$file" ]; then echo "file not found. $help"