Skip to content

Commit 2a45726

Browse files
committed
Add changelog
1 parent 925b377 commit 2a45726

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

changelog.d/pr-10990.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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.

0 commit comments

Comments
 (0)