-
Notifications
You must be signed in to change notification settings - Fork 691
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
multiple cabal.project files with different names #3738
Comments
This seems eminently reasonable. We recently added an (undocumented, because it doesn't work in cabal-install) |
There's no problem in principle with this, but I'd like to point out an approach that I think we should take that would cover this use case better, which is to have "profiles" in the So, point is I'm not going to object to this being added, but we can do better for this use case so we should aim for that. |
This ticket brings up an interesting point, which is that arguably @choener wants a dist-newstyle per project file. Which would help avoid the caches clobbering each other (the per-GHC build dirs in HEAD helps, but sometimes it won't kick in.) |
Not a priority for 2.0 release. |
I could live with a minimal version where there are just different profiles (in one or more files), as well as a more developed thing where we end up with different dist-newstyle folders (which would be nice to have). One advantage of different files for different profiles is that the cabal.project file can be made part of the hackage upload, while I could keep my cabal.devel.project file only in the repository. It tends to contain system-specific changes anyway (like relative paths to in-house libraries) that are invalid everywhere else. As such I wouldn't want to pollute hackage with them. |
We have |
I would like to have more than one project file for new-build / new-configure and select them via
--project-file
or similar.This would allow a workflow, where I have a default
cabal.project
that uses, say, only the packages known on hackage, and anothercabal.devel.project
where I point toward updated local packages that I currently work on.This is mostly about convenience because I then do not have to clear the project file once I merge into the
main
branch.The text was updated successfully, but these errors were encountered: