-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
@@ -104,7 +134,9 @@ exeFlags = baseFlags { | |||
-- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Executable
s. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for splitting the commit!
Please replace the current subject lines of the commit messages (commit x of n) with short summaries of the changes
c79e5ef
to
a940fc4
Compare
a940fc4
to
e5d57ad
Compare
@fgaz can I get a 👍 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
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
exe
dir being created when we specify libraries interactively:and for Libraries + Executables,
and for Executables,
Please include the following checklist in your PR: