Skip to content

Commit

Permalink
Make .ghcide script compatible with Bazel 7
Browse files Browse the repository at this point in the history
The `--experimental_show_artifacts` flag was removed, so we do not rely on it anymore.
  • Loading branch information
avdv committed Nov 19, 2024
1 parent 1b031da commit fdfe857
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions rules_haskell_tests/.ghcide
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
build_ghcide() {
bazel build //tests/ghcide \
--experimental_show_artifacts \
2>&1 \
| awk '
/^>>>/ { print substr($1, 4); next }
{ print $0 > "/dev/stderr" }
'
bazel build //tests/ghcide
outfile=$( bazel cquery --output=files //tests/ghcide )
echo "$( bazel info execution_root)/${outfile}"
}
ghcide="$(build_ghcide)"
"$ghcide" "$@"

0 comments on commit fdfe857

Please sign in to comment.