Skip to content

Commit 999a8bf

Browse files
committed
.ghcide: Don't hard-code bazel-bin
1 parent ad97513 commit 999a8bf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.ghcide

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
3-
bazel build @ghcide//:ghcide
4-
bazel-bin/external/ghcide/_install/bin/ghcide "$@"
3+
build_ghcide() {
4+
bazel build @ghcide//:ghcide \
5+
--experimental_show_artifacts \
6+
2>&1 \
7+
| awk '
8+
/^>>>/ { print substr($1, 4); next }
9+
{ print $0 > "/dev/stderr" }
10+
'
11+
}
12+
ghcide="$(build_ghcide)"
13+
"$ghcide" "$@"

0 commit comments

Comments
 (0)