File tree 1 file changed +5
-1
lines changed
cabal-install/src/Distribution/Client 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,18 @@ listbinAction flags@NixStyleFlags{..} args globalFlags = do
133
133
134
134
case binfiles of
135
135
[] -> die' verbosity " No target found"
136
- [exe] -> putStr $ withOutputMarker verbosity exe
136
+ [exe] -> putStr $ withOutputMarker verbosity $ exe ++ " \n "
137
137
-- Andreas, 2023-01-13, issue #8400:
138
138
-- Regular output of `list-bin` should go to stdout unconditionally,
139
139
-- but for the sake of the testsuite, we want to mark it so it goes
140
140
-- into the golden value for the test.
141
141
-- Note: 'withOutputMarker' only checks 'isVerboseMarkOutput',
142
142
-- thus, we can reuse @verbosity@ here, even if other components
143
143
-- of @verbosity@ may be wrong (like 'VStderr', verbosity level etc.).
144
+ -- Andreas, 2023-01-20:
145
+ -- Appending the newline character here rather than using 'putStrLn'
146
+ -- because an active 'withOutputMarker' produces text that ends
147
+ -- in newline characters.
144
148
_ -> die' verbosity " Multiple targets found"
145
149
where
146
150
defaultVerbosity = verboseStderr silent
You can’t perform that action at this time.
0 commit comments