Skip to content
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 dist-newstyle/cache/compiler in the current folder #10686

Open
Bodigrim opened this issue Dec 29, 2024 · 0 comments
Open

cabal run creates dist-newstyle/cache/compiler in the current folder #10686

Bodigrim opened this issue Dec 29, 2024 · 0 comments

Comments

@Bodigrim
Copy link
Collaborator

Describe the bug
Running a standalone script (#!/usr/bin/env cabal) creates and leaves dist-newstyle/cache/compiler in the current folder. This is a regression in comparison to Cabal 3.14.1.0.

To Reproduce
Steps to reproduce the behavior:

$ ll dist-newstyle/cache/compiler; echo '#!/usr/bin/env cabal\n{- cabal:\nbuild-depends: base\n-}\nmain :: IO ()\nmain = pure ()' > Main.hs && chmod +x Main.hs && ./Main.hs && ll dist-newstyle/cache/compiler
ls: dist-newstyle/cache/compiler: No such file or directory
-rw-r--r--  1 andrew  staff  25365 Dec 29 01:31 dist-newstyle/cache/compiler

Expected behavior
With Cabal 3.14.1.0 no files are created in the current folder.

System information

  • macOS, GHC 9.6.6, Cabal HEAD built from 4b2e5f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant