summaryrefslogtreecommitdiff
path: root/utils/notes-util
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-01-30 08:30:15 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-08 05:28:42 -0500
commit1a9438594d6d5280dfe43e4e597dd0380963268d (patch)
treee785216d0db8115009ce25e45cb0d2afb76ff99a /utils/notes-util
parent457a5b9c6eadfd13548f25c5568d5c802d22f411 (diff)
downloadhaskell-1a9438594d6d5280dfe43e4e597dd0380963268d.tar.gz
gitlab-ci: Add lint-notes job
Diffstat (limited to 'utils/notes-util')
-rwxr-xr-xutils/notes-util/check.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/notes-util/check.sh b/utils/notes-util/check.sh
index 079eeec1cd..acac923471 100755
--- a/utils/notes-util/check.sh
+++ b/utils/notes-util/check.sh
@@ -3,10 +3,11 @@
set -e
CABAL_INSTALL="${CABAL_INSTALL:-cabal}"
+GHC="${GHC:-ghc}"
cd "$(dirname $0)"
-"$CABAL_INSTALL" build
-bin="$("$CABAL_INSTALL" list-bin ghc-notes)"
+"$CABAL_INSTALL" build -w "$GHC"
+bin="$("$CABAL_INSTALL" list-bin -w "$GHC" ghc-notes)"
cd "$(git rev-parse --show-toplevel)"
"$bin" broken-refs \
| grep -v "utils/notes-util/expected-broken-note-refs:" \