On Wed, May 6, 2015 at 11:53 AM, Mikhail Glushenkov
<the.dead.shall.r...@gmail.com> wrote:
> On 6 May 2015 at 17:43, Gershom B <gersh...@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
_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel

Reply via email to