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
shouldn't site be earlier in @*INC ? #3613
Comments
From @szabgabCurrently in Rakudo * 2014.12.1 The @*INC order looks like this: $ perl6
Array.new(CompUnitRepo.new('file:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib'), and Bailador.pm can be found in After installing a new version of Bailador using panda install . the new file was placed in /Users/gabor/rakudo-star-2014.12.1//install/languages/perl6/site/lib/Bailador.pm but that means, if I "use Bailador" it will find the old version. I think both 'site' directories should be *before* the respective other Gabor |
From @lizmat
How did that get there (originally) ??? This feels like a “personal” install to me, which would have a higher precedence than a “site” install.
Indeed. Question is (to me): how did the original one get there?
This can be easily fixed. But I’m not sure it’s the right solution :-( Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @szabgabIf I recall correctly in Perl 5 the resolution was that the directories in I am not sure about Perl 6, but with the above layout I think system would I ran some experiments from scratch in two ways: (with and without giving 1) perl Configure.pl --backends=moar --gen-moar --prefix=/home/gabor/rakudo $ ~/rakudo/bin/perl6 -e 'say @*INC' $ find /Users/gabor/rakudo -name Bailador.pm $ ~/rakudo/bin/perl6 /Users/gabor/rakudo/bin/panda $ ~/rakudo/bin/perl6 -e 'say @*INC' ******* So by running panda I got some more entries in @*INC $ ~/rakudo/bin/perl6 /Users/gabor/rakudo/bin/panda install Bailador $ find /Users/gabor/rakudo -name Bailador.pm ****** panda installs Bailador in the site dir which comes after the 1) perl Configure.pl --backends=moar --gen-moar $ perl6 -e 'say @*INC' file:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib ******** has a different @*INC than what I had when I built it with $ find /Users/gabor/rakudo-star-2014.12.1 -name Bailador.pm ****** as I understand the one in the modules directory came with the $ ~/rakudo-star-2014.12.1/install/bin/perl6 $ perl6 -e 'say @*INC' file:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib ****** by installing Bailador, the @*INC was changed $ find /Users/gabor/rakudo-star-2014.12.1 -name Bailador.pm ***** and now I have a third copy of Bailador.pm Gabor |
From @usev6FWIW, this discussion seems to be related: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=122725 Christian |
From @smls@*INC no longer exists. Also, 'perl6/site' seems to be pretty early in the repo chain now: ➜ .say for $*REPO.repo-chain; Can this ticket be closed? |
@smls - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123578 (status was 'resolved')
Searchable as RT123578$
The text was updated successfully, but these errors were encountered: