File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ synopsis : " Make cabal exec not pass extra -package-env argument"
3
+ packages : [Cabal]
4
+ prs : 10990
5
+ ---
6
+
7
+ ` cabal exec ` started passing ` -package-env=- ` to all executables if
8
+ underlying GHC supports env files. This makes the called executable
9
+ fail if it doesn’t support the ` -package-env ` flag, which many
10
+ executables don’t.
11
+
12
+ This change restores old ` cabal exec ` behaviour to call regular
13
+ executables without any extra command-line options and keeps fixes in
14
+ PR 10828 that passes ` -package-env ` when dealing with GHC in other
15
+ cabal commands. GHC is not typically called via ` cabal exec ` but the
16
+ PR 10828 made other commands like ` cabal build ` pass the flag. This PR
17
+ attempts to maintain that.
You can’t perform that action at this time.
0 commit comments