Commit 01b8c86
committed
Always pass '--interactive' as the first ghc argument
We recently changed Cabal to use response files for all GHC arguments by
default.
Unfortunately, this broke a couple of downstream consumers of cabal,
notably Haskell Language Server and doctest, which both assume that
`--interactive` is the first argument of the `ghc` invocation by
`cabal repl`.
This regression was fixed by implementing the `--with-repl` (#9115)
argument, and tools, such as hie-bios and doctest, have been updated to
take advantage of this. However, this renders already published HLS
binaries, so any HLS version <=2.12.0.0, incompatible with `cabal-3.16`,
as these old binaries can't be easily updated.
In other words, no released HLS binary (at the point of this commit), is
compatible with the cabal-3.16.0.0. Users have to build HLS from source
to have a working toolchain.
To give us a slightly better migration window, we undo some of the
improvements to cabal, and make sure that `--interactive` is always
passed as the first argument to the underlying `ghc` invocation.
This hack is supposed to be temporary, and removed for cabal 3.18.
Further, we don't use response files for the final `ghc --interactive`
invocation.1 parent 651120c commit 01b8c86
File tree
9 files changed
+120
-3
lines changed- Cabal/src/Distribution/Simple/Program
- cabal-install/src/Distribution/Client
- cabal-testsuite/PackageTests/WithRepl/InteractiveIsFirstTest
- source1
- source2
- changelog.d
9 files changed
+120
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
695 | 711 | | |
696 | 712 | | |
697 | 713 | | |
| |||
704 | 720 | | |
705 | 721 | | |
706 | 722 | | |
707 | | - | |
| 723 | + | |
708 | 724 | | |
709 | 725 | | |
710 | 726 | | |
711 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
712 | 740 | | |
713 | 741 | | |
714 | 742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
| 485 | + | |
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments