Skip to content
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

Pakku not adding local lib directory when adding from path (like '.') #36

Open
Xliff opened this issue Oct 6, 2023 · 2 comments
Open

Comments

@Xliff
Copy link

Xliff commented Oct 6, 2023

You can see the issue here:

2023-10-06  15:03:13  cbwood   main ✚ 6 … 149 ⚑ 3  ~  Projects  p6-GIO  pakku add .
🧚 ADD: 「.」 
🦗 ERR: ===SORRY!=== Error while compiling /home/cbwood/Projects/p6-GIO/site#sources/E1C6F1118816E8E4FBD5CBE9D56CDB0FD6DC4839 (GIO::AppInfoMonitor)
===SORRY!=== Error while compiling /home/cbwood/Projects/p6-GIO/site#sources/7643B8F38881EDEB19A23D47B7A0B861F548AC5E (GIO::Raw::Types)
===SORRY!=== Error while compiling /home/cbwood/Projects/p6-GIO/site#sources/50E76B60C1CF74D08D7E9C6B55C2DC9BAB065C87 (GIO::Raw::Definitions)
Could not find GIO::Raw::Distro in:
    /home/cbwood/.pakku/.stage/1696619032.097082
    /home/cbwood/.raku
    /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site
    /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/vendor
    /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/core
    CompUnit::Repository::AbsolutePath<4762417865520>
    CompUnit::Repository::NQP<4762416869504>
    CompUnit::Repository::Perl5<4762416862264>
at /home/cbwood/Projects/p6-GIO/site#sources/50E76B60C1CF74D08D7E9C6B55C2DC9BAB065C87 (GIO::Raw::Definitions):7

at /home/cbwood/Projects/p6-GIO/site#sources/7643B8F38881EDEB19A23D47B7A0B861F548AC5E (GIO::Raw::Types):20

at /home/cbwood/Projects/p6-GIO/site#sources/E1C6F1118816E8E4FBD5CBE9D56CDB0FD6DC4839 (GIO::AppInfoMonitor):5

  in block  at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/sources/F12AC2E0572CF4ECDB03D307348408278EEB651D (Pakku::Command::Add) line 397
  in method fly at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/sources/F12AC2E0572CF4ECDB03D307348408278EEB651D (Pakku::Command::Add) line 311
  in method fly at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/sources/B32C00A35E493836DDDF8E743971E6AA933F9F8F (Pakku) line 33
  in method fly at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/sources/B32C00A35E493836DDDF8E743971E6AA933F9F8F (Pakku) line 57
  in method fly at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/sources/B32C00A35E493836DDDF8E743971E6AA933F9F8F (Pakku) line 33
  in block <unit> at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/resources/4F2E9A9CAC2BE5880560BDE23A0ABC1B4E8FADC1 line 8
  in sub MAIN at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/bin/pakku line 3
  in block <unit> at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/bin/pakku line 1
 
🦗 FUN: Nofun

When adding from the current directory, an implicit "-Ilib" should be added, and is not, as shown by the list of includes:

/home/cbwood/.pakku/.stage/1696619032.097082
/home/cbwood/.raku
/home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site
/home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/vendor
/home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/core
@hythm7
Copy link
Owner

hythm7 commented Oct 7, 2023

When adding from the current directory, an implicit "-Ilib" should be added

I disagree, because -Ilib is more of a helper for development process. However, Installation uses META6.json. When installing a distribution Rakudo looks in provides key in META6.json file for provided modules.

In this case it looks like GIO::Raw::Distro is missing from META6.json file. Adding it I think it will resolve the issue.

@hythm7
Copy link
Owner

hythm7 commented Oct 7, 2023

fwiw (I dont think it is a good idea, but its possible) you can run RAKULIB=lib pakku add . which will add lib to the repo-chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants