Repository navigation
Cabal freeze does not clobber cabal.config - #1629
Conversation
|
Nice, thanks. I'll take a look when I get home. |
|
Rebased to remove a couple of redundant commits as requested. |
This requires `getPkgEnvDir` to be exported from `D.Client.Sandbox`.
|
Merged. Sorry about the delay. |
|
Regarding the compilation failure, commit d8e1c31 moved As this pull request remains closed but one of the commits on it has been reverted, I'm uncertain as to whether anything still needs to be done here. If so, let me know what and I'll see if I can find the time. |
|
@benarmston As I said above, |
While this describes what should happen, it does not describe what is happening, which is in fact, the opposite. See #1915 for details. |
This PR has the freeze command update the
cabal.configfile without clobbering all of its content, as wanted in #1615.There are some limitations in the final approach which has been taken: 1) any comments in the file are removed; 2) the ordering of the configuration items may be changed; and 3) an extraneous field
install-dirsis included. The ordering of the configuration items is stable, but in the case that a user has manually added new fields they may be changed.I've taken a number of different approaches to get this working. I think that the final approach I've settled on is close to the correct one, but I'd appreciate it if someone could take a look and comment, and provide a suggestion on how to remove
install-dirsfrom the included fields.