Skip to content

cabal-3.14 v1-install expects Cabal file although not necessary #10906

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

Open
amigalemming opened this issue Apr 5, 2025 · 8 comments
Open

cabal-3.14 v1-install expects Cabal file although not necessary #10906

amigalemming opened this issue Apr 5, 2025 · 8 comments

Comments

@amigalemming
Copy link
Contributor

Describe the bug

I want to install many local packages at once, but cabal-3.14 refuses to do so, because there is no cabal description in the current package.

To Reproduce

This used to work:

/tmp$ cabal-3.12 v1-install pkg1/ pkg2/ pkg3/

But now I get:

/tmp$ cabal-3.14 v1-install pkg1/ pkg2/ pkg3/
...
Error: [Cabal-7654]
No cabal file found.
Please create a package description file <pkgname>.cabal
...
@ffaf1
Copy link
Collaborator

ffaf1 commented Apr 5, 2025

$ cabal v1-install --help
Install packages.

Usage: cabal v1-install [FLAGS]
   or: cabal v1-install [FLAGS] PACKAGES

Installs one or more packages. By default, the installed package will be
registered in the user's package database.
If PACKAGES are specified, downloads and installs those packages. Otherwise,
install the package in the current directory (and/or its dependencies) (there
must be exactly one .cabal file in the current directory).
⁝

So:

  1. If packages are specified, download them and install them.
  2. If not, install the package in current directory (or deops). There has to be one .cabal file in the current directory.

Am I correct in saying the behaviour you expect falls in neither of those two buckets?

@amigalemming
Copy link
Contributor Author

amigalemming commented Apr 5, 2025 via email

@Mikolaj
Copy link
Member

Mikolaj commented Apr 5, 2025

From what you said, it was probably removed. If you can track the removal down, if it turns out it's easy to restore without complicating non-legacy code, I think we'll be open to a PR that does that. Note however, that v1- instructions will be gone sooner or later. Can your workflow we adjusted to v2- or, if not, to ./Setup foo (this one stays)?

@amigalemming
Copy link
Contributor Author

amigalemming commented Apr 5, 2025 via email

@amigalemming
Copy link
Contributor Author

amigalemming commented Apr 9, 2025 via email

@amigalemming
Copy link
Contributor Author

amigalemming commented Apr 9, 2025 via email

@ulysses4ever
Copy link
Collaborator

oh, #9718 strikes again. It was a substantial change, so it's understandable that it broke some things, including undocumented ones like the one discussed here. @sheaf @mpickering, any comments?

@mpickering
Copy link
Collaborator

I can investigate at some point soon but no immediate comments.

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

5 participants