Commit de9f58c
committed
fix(haskell-language-server): set CABAL_DIR and capture build errors
Without CABAL_DIR, cabal has no writable home for its config, package index,
and build store in the sandboxed build environment — the most likely root
cause of the 17-minute build failures. Every other Haskell package in the
repo (tamarin-prover, stack) sets this; HLS was the only one that didn't.
Also add --with-compiler for explicitness, -v1 for verbose output, and an
error-capture block (matching tamarin-prover's pattern) that extracts the
real compile/link error on failure instead of a bare "build failed" exit.1 parent bf268a4 commit de9f58c
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| 25 | + | |
17 | 26 | | |
18 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
19 | 38 | | |
20 | 39 | | |
21 | 40 | | |
| |||
34 | 53 | | |
35 | 54 | | |
36 | 55 | | |
37 | | - | |
| 56 | + | |
0 commit comments