Skip to content
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

etlas configure doesn't persist libdir, datadir, docdir, etc. #62

Open
puffnfresh opened this issue Aug 4, 2018 · 6 comments
Open

etlas configure doesn't persist libdir, datadir, docdir, etc. #62

puffnfresh opened this issue Aug 4, 2018 · 6 comments

Comments

@puffnfresh
Copy link
Collaborator

I've never used new-configure or new-build so I'm not sure if this is intended behaviour from the Cabal side. I'm trying to set a lot of the installation directories at configure time:

etlas configure \
   --libdir="$out/lib" \
   --datadir="$data/share/${hpkgs.eta.name}" \
   --docdir="$doc/share/doc/${pname}-${version}" \
   --allow-boot-library-installs

The only setting which is persisted in cabal.project.local is allow-boot-library-installs.

@rahulmutt
Copy link
Member

I'll check this out. new-configure has been rather experimental and I think they recently merged changes that should fix this.

@puffnfresh
Copy link
Collaborator Author

@rahulmutt thanks, my workaround at the moment is to supply the flags for each command but means things get reconfigured (with the same flags) and thus rebuilt on eta build and eta install 😿

@rahulmutt
Copy link
Member

@puffnfresh You can create a cabal.project file in the script that supplies the equivalent fields in the file. No need to run etlas configure then.

@puffnfresh
Copy link
Collaborator Author

@rahulmutt it doesn't use configuration from that. For example, if I set store-dir in cabal.project, it still tries to use the default value instead.

@rahulmutt
Copy link
Member

@puffnfresh That's definitely a bug. I recall setting store-dir in a cabal.project on Windows to avoid the path limit and it worked as intended.

@puffnfresh
Copy link
Collaborator Author

puffnfresh commented Aug 10, 2018

I think the problem is actually that I'm passing allow-boot-library-installs to etlas build and etlas install, which doesn't work for configure because it's a build/install flag. When I pass it to install, it reconfigures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants