Re: [PATCH v2] test-lib.sh: set PERL5LIB instead of GITPERLLIB
- From
- Lea Wiemann <lewiemann@gmail.com>
- Date
- Jun 2, 2008, 22:19 UTC
- Message-ID
- <484471E1.4040509@gmail.com>
- In-Reply-To
- <7v4p8b7gij.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> the precedence between "use lib @these_paths"
Apologies, I somehow missed the or-expression in $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@" and thought we didn't set any library paths if we unset GITPERLLIB. :( So yes, of course my patch is rubbish -- sorry for wasting your time, I'll check more carefully next time!
> If [t/t9700/<many>.perl] unconditionally do "use lib $ENV{GITPERLLIB};"
> upfront, wouldn't that be enough to guarantee that you would use the
> freshly built one during the test, not the instsalled one?Yup, that's fine. I'll add it to the test file.
-- Lea