Making cabal-install SSL capable

Thomas Tuegel ttuegel at gmail.com
Wed May 6 18:08:12 UTC 2015


On Wed, May 6, 2015 at 11:53 AM, Mikhail Glushenkov
<the.dead.shall.rise at gmail.com> wrote:
> On 6 May 2015 at 17:43, Gershom B <gershomb at gmail.com> wrote:
>> I’m less certain about the use of ProgramDB — the documentation suggests it will only be populated from command line flags in the “configure” step, or from .cabal files. Since upload/download do not take place in such settings, I don’t think it will contain useful information yet. So it might be the right approach to use it, but it would also require, I suspect, modifying other parts of the cabal-install executable to populate it properly?
>
> You may need to use a separate ProgramDb (populated at runtime) just
> for curl/wget and friends. The point is that we already have some code
> for locating executables that supports setting program locations on
> command line ('--with-PROG-path') and in the config file, so it'd be
> nice to reuse it.

The saved program configuration is not serialized in
`dist/setup-config`, [1] so it must be regenerated at runtime every
time, anyway.

[1]. https://github.com/haskell/cabal/blob/master/Cabal/Distribution/Simple.hs#L426

-- 
Thomas Tuegel


More information about the cabal-devel mailing list