"Error: cabal: There is no <pkgname>.cabal package file or cabal.project file." in directory with .cabal file #9353
Labels
re: project-file
Concerning cabal.project files
re: user experience
User experience (UX) issue
type: enhancement
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
cabal build
gives a very confusing error message in a (unknown) package subdirectory under a cabal.project.To Reproduce
but there is a .cabal file right there!
Expected behavior
Package in unrelated subdir to build normally.
Also complaining there is no .cabal file is rather confusing.
System information
cabal-3.8+
,ghc-9.4
Additional context
Currently used by hkgr to do pristine sanity builds from tarball before publishing to Hackage.
Related discussion: #8519
The text was updated successfully, but these errors were encountered: