-
Notifications
You must be signed in to change notification settings - Fork 711
Paths in Paths_ module wrong for local/vendored packages #5543
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
Comments
This is a long-standing known issue; for packages which do not get installed into the nix-style store, we deliberately decided to go with the less trivial choice to tolerate incorrect paths in the Consequently, if you don't |
Ok, that makes sense! Does |
Yes, indeed: A custom (This file also does some fishy stuff like copying these paths into another generated Haskell file, don’t get distracted from that.) |
After browsing the code a bit, it seems that you are only seeing the |
Still trying to use
cabal
v2-commands to build a project where the authors use stack. I ran into this problem:A number of local libraries and executable have data-files, and use them during execution, based on the paths in the generated
Paths_foo
module. In one case, aSetup.hs
even writes generated files into the data directory.But when I build these with
cabal new-build
, they are not installed into the paths that are included in thePaths
directory:It looks to me as if these are the paths that one would have after a
v1
-style installation.The code also has support for overriding these paths using environment variables… but I am not sure who should do the overriding (
cabal new-exec
?), and what to override them with.The text was updated successfully, but these errors were encountered: