-
Notifications
You must be signed in to change notification settings - Fork 704
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
cabal run
creates a build
folder if dist-newstyle
is already present
#10772
Comments
FWIW, I've observed with head and 3.14 that the build folder is created regardless of whether dist-newstyle exists |
Thanks. While bisecting, this — weirdly enough — happened only at times, while always when |
@ffaf1 maybe you could leave the dist-newstyle directory be and try to bisect it that way? It does sound believable that it's a regression in 3.14. Does it not reproduce on the 3.14 branch for you at all now? |
I believe it is more complicated that a simple I will try to write a reasoned reproducer soon™. |
Here is a reproducer: $ ll build/*/ghc*; echo '#!/usr/bin/env cabal\n{- cabal:\nbuild-depends: base\n-}\nmain :: IO ()\nmain = pure () -- '$(date) > Main.hs && chmod +x Main.hs && ./Main.hs && ll build/*/ghc*
zsh: no matches found: build/*/ghc*
drwxr-xr-x 3 andrew staff 96 Feb 3 19:11 ./
drwxr-xr-x 3 andrew staff 96 Feb 3 19:11 ../
drwxr-xr-x 3 andrew staff 96 Feb 3 19:11 fake-package-0/ There was no
CC @sheaf |
Describe the bug
cabal run
creates abuild
folder ifdist-newstyle
is already present.Offspring of #10686.
To Reproduce
dist-newstyle
folder inside it.script.hs
.ls -l
build
folder.Expected behavior
build/
is not created.System information
Debian bookworm. cabal 3.15.
Additional context
This is not fixed by #10771 , but neither is a regression and once #10771 lands, not urgent.
The text was updated successfully, but these errors were encountered: