-
Notifications
You must be signed in to change notification settings - Fork 705
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 update creates dist-newstyle folder in $PWD #8589
Comments
|
expect this may be fixed by #8358 ? |
I hope this will end up in the next 3.8 release. |
@arrowd: 3.10 branch is about to be cut and this is intended to make it there. Unlikely to make it into a future 3.8 release, if any. (cc @andreasabel) |
Worthy of a backport I would say - it's a pretty bad 3.8 regression Looks like it is non-trivial though (ie #8627 doesn't apply to 3.8) |
the combination of #8358 and #8627 should prevent the creation of dist-newstyle in a directory with no package or project. In the case you run That said, I do not think we have further plans for a new 3.8 release, so I'm not sure of what the purpose of a backport would be... |
I created a backport intended for Fedora 39, which seems to work |
As I expected ;-(
It is easier to pick commits from a stable branch than hunting around the project and then backporting... There are quite a few distros shipping 3.8 currently... |
In that case, I think a backport to the 3.8 branch would be welcome. |
Describe the bug
When
cabal update
is run this creates a new folderdist-newstyle
in PWD.This seems wrong as the command shouldn't pollute my PWD and will also
fail if ran in a read-only directory
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I don't expect this folder to be created.
cabal update
updates global state, so I don't understand the need for local storage.System information
cabal
3.8.1.0The text was updated successfully, but these errors were encountered: