Skip to content

Commit fdfe857

Browse files
committed
Make .ghcide script compatible with Bazel 7
The `--experimental_show_artifacts` flag was removed, so we do not rely on it anymore.
1 parent 1b031da commit fdfe857

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

rules_haskell_tests/.ghcide

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33
build_ghcide() {
4-
bazel build //tests/ghcide \
5-
--experimental_show_artifacts \
6-
2>&1 \
7-
| awk '
8-
/^>>>/ { print substr($1, 4); next }
9-
{ print $0 > "/dev/stderr" }
10-
'
4+
bazel build //tests/ghcide
5+
outfile=$( bazel cquery --output=files //tests/ghcide )
6+
echo "$( bazel info execution_root)/${outfile}"
117
}
128
ghcide="$(build_ghcide)"
139
"$ghcide" "$@"

0 commit comments

Comments
 (0)