You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Thanks for the report! Presumably, this issue doesn't lead to a failure in any case, does it? I'm asking because it'd be good to understand how severe it is. On the surface it looks rather benign to me.
It may cause uses of environment variables in tests to behave incorrectly. In the theoretical worst-case scenario, it could lead to security risks, e.g.
The severity of this issue in practice is unclear. The most probable scenario I can think of is that a fragile piece of code that scrubs sensitive data out of environment variables could misbehave due to the duplication, causing credentials to get leaked through, say, logs. A bit of a stretch but not impossible.
Describe the bug
cabal 3.14.1.0
invokes test binaries with with an invalid environment variable list that contains duplicate entries.As documented by POSIX: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap08.html
This is causing the
directory
CI tests to fail: https://github.com/haskell/directory/actions/runs/12595046406The bug is not found in
cabal 3.12.1.0
.To Reproduce
$ cabal test
Actual output
Expected behavior
There should not be any duplicates, i.e.
System information
cabal 3.14.1.0
. Not reproducible oncabal 3.12.1.0
.The text was updated successfully, but these errors were encountered: