You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I expect to be able to use cabal files at an abnormal path by pointing Cabal at it with the --cabal-file argument.
To Reproduce
Steps to reproduce the behavior:
Set up a package that builds normally with Cabal.
Move [package name].cabal outside of the directory or change the extension.
Run cabal v2-build --cabal-file [new path].
Expected behavior
Cabal builds the package as if the Cabal file was at its original path.
Actual behavior
Cabal reports the following:
No cabal.project file or cabal file matching the default glob './*.cabal' was found.
Please create a package description file <pkgname>.cabal or a cabal.project file referencing the packages you want to build.
IIRC, --cabal-file does the right thing if you're using the Setup.hs interface. But it doesn't make any sense on the high level v2 interface. Agree it should be removed from there.
@hyperfekt as the decision was remove the flag and no "fix" it, I would close this one and open a new one tracking the flag deletion itself
will do if you don't disagree
Activity
phadej commentedon Jun 6, 2020
--cabal-fileis used for testing.We should remove that flag from public interface.
cc @ezyang
ezyang commentedon Jun 7, 2020
IIRC,
--cabal-filedoes the right thing if you're using the Setup.hs interface. But it doesn't make any sense on the high level v2 interface. Agree it should be removed from there.jneira commentedon Jul 13, 2021
@hyperfekt as the decision was remove the flag and no "fix" it, I would close this one and open a new one tracking the flag deletion itself
will do if you don't disagree
ulysses4ever commentedon Aug 18, 2022
Agree with @jneira's comment above. Let's act on it?
ulysses4ever commentedon Aug 18, 2022
Same for #7225 (a dup).
Mikolaj commentedon Aug 18, 2022
Let's do it. :)
ulysses4ever commentedon Aug 18, 2022
Done! #8395