Repository navigation
Don't create spurious dirs on init - #7262
Conversation
|
Question about the changelog: master seems to only be as recent as 3.2. Do you want to just cherrypick this, or should i add an entry? |
990a49d to
a04be32
Compare
@emilypi what do you mean? |
|
@fgaz the changelog for cabal-install ends with 3.2. It doesn't seem to have been maintained. https://github.com/haskell/cabal/blob/master/cabal-install/changelog |
|
I think that's because 3.2 is still the last release and 3.4 is still at the rc stage. @phadej? |
9c1d466 to
f5ca335
Compare
| -- Create an executable only, with main living in app/Main.hs. | ||
| packageType = Flag Executable | ||
| , mainIs = Flag "Main.hs" | ||
| , sourceDirs = Just [] |
There was a problem hiding this comment.
sourceDirs = Nothing in baseFlags was actually the wrong state for this to be in. Throughout the course of init it actually gets turned into Just [] for Executables. So, to test against this, we set this as our golden data.
334e464 to
b60517d
Compare
3ae0c57 to
89a5c41
Compare
|
Could you split the TESTING.md stuff into a separate commit? |
156e1d4 to
3a6d592
Compare
b6b1266 to
1a06300
Compare
|
@fgaz split up for you. |
1dc26ff to
8319496
Compare
|
I found a few more bugs while going through the code and wrote up a proposal fix for #7265. In case that doesn't get done by the time 3.4 is released, I think this would still be a good quality of life improvement for this particular function. |
c79e5ef to
a940fc4
Compare
a940fc4 to
e5d57ad
Compare
|
@fgaz can I get a 👍 ? |
fgaz
left a comment
There was a problem hiding this comment.
👍 👍
Remember to add the changelog entry before merging!
|
Thanks @fgaz! Added, and merging. |
|
Does this merge mean that #6772 is fixed (in |
|
Yes, good call @ulysses4ever |
This gets rid of that pesky
exedir being created when we specify libraries interactively:and for Libraries + Executables,
and for Executables,
Please include the following checklist in your PR: