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

Regression: cabal-3.12.1.0 install ignores --program-suffix when checking whether exe is already installed #10290

Open
andreasabel opened this issue Aug 28, 2024 · 0 comments

Comments

@andreasabel
Copy link
Member

cabal-3.12.1.0 install wrongly ignores --program-suffix when checking whether exe is already installed:

$ cabal-3.12.1.0 install hello
...
Symlinking 'hello' to '/Users/test/.local/bin/hello'

$ cabal-3.12.1.0 install hello --program-suffix=-new
...
Error: [Cabal-7149]
Path '/Users/test/.local/bin/hello' already exists. Use --overwrite-policy=always to overwrite.

cabal-3.10.3.0 can still do this correctly:

$ cabal-3.10.3.0 install hello --program-suffix=-new
...
Symlinking 'hello' to '/Users/test/.local/bin/hello-new'

Regression possibly introduced by:

The --program-suffix feature likely needs more systematic regression tests.

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

3 participants
@andreasabel @Kleidukos and others