**Describe the bug** Running `cabal gen-bounds` in a project whose cabal package is not in the root will fail to recognize the package: **To Reproduce** Steps to reproduce the behavior: ``` cd $(mktemp -d) cabal init -m -n --exe bad echo 'packages: bad' > cabal.project cabal gen-bounds bad ``` Results in ``` Error: cabal: No cabal file found. Please create a package description file <pkgname>.cabal ``` **Expected behavior** Should gen-bounds for the `bad` package (which is located in the `bad` directory) **System information** - `cabal` 3.10, HEAD
Activity
alt-romes commentedon Feb 28, 2024
Same for
cabal outdatedffaf1 commentedon Feb 28, 2024
The documentation does not imply targets for
gen-bound, but it does ([PACKAGES]) foroutdated.ffaf1 commentedon Feb 28, 2024
Documentation:
--help, Manual is correct.alt-romes commentedon Feb 28, 2024
I see. Do you think it would be reasonable to make it work with projects?
This came up because I'm unable to do cabal gen-bounds for a package in a project whose dependencies are local...
ulysses4ever commentedon Feb 28, 2024
Perhaps duplicate of:
ffaf1 commentedon Feb 28, 2024
It would be welcome, the only drawbacks that come to mind are:
cabal.project.Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function
Implement v2-gen-bounds function