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 edfbd62
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions rules_haskell_tests/.ghcide
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#!/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 && \
bazel cquery //tests/ghcide --output=files
}
ghcide="$(build_ghcide)"
"$ghcide" "$@"

0 comments on commit edfbd62

Please sign in to comment.