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
Describe the bug
Running
cabal gen-boundsin a project whose cabal package is not in the root will fail to recognize the package:To Reproduce
Steps to reproduce the behavior:
Results in
Expected behavior
Should gen-bounds for the
badpackage (which is located in thebaddirectory)System information
cabal3.10, HEAD