Use modules installed correctly and respect RAKULIB paths
Actual Behavior
It fails to compile File::Temp, and the search path shows that it's not using RAKULIB (for this one only, apparently)
===> From Distribution: File::Directory::Tree:ver<*>:auth<labster>:api<>
File::Directory::Tree => /home/raku/.raku/sources/9348C8241DCB23010628352BB28803635DAB3C87
inst#/home/raku/.raku
===> Searching for missing dependencies: IO::Glob, Text::CSV, Git::File::History
===> Updating fez mirror: https://360.zef.pm/
===> Updated fez mirror: https://360.zef.pm/
===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
===SORRY!=== Error while compiling /__w/IV-22-23/IV-22-23/home#sources/5F3C2F631F65B41420D2685E96BE40A39DEEAC8C (File::Temp)
Could not find File::Directory::Tree in:
/github/home/.raku
/usr/share/perl6/site
/usr/share/perl6/vendor
/usr/share/perl6/core
CompUnit::Repository::AbsolutePath<4337873340576>
CompUnit::Repository::NQP<4337909972968>
CompUnit::Repository::Perl5<4337909973008>
at /__w/IV-22-23/IV-22-23/home#sources/5F3C2F631F65B41420D2685E96BE40A39DEEAC8C (File::Temp):3
You see above, it's installed, RAKULIB points to where it' sinstalled, but the path does not show it's searching that part.
To reproduce, use a Github Action similar to this one:
name: "Genera fichero objetivos cumplidos a partir de los ficheros de objetivos"
on:
push:
branches:
- master
paths:
- proyectos/objetivo*.md
- lib/**
- t/**
- .github/workflows/commit-json.yaml
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: ghcr.io/jj/raku-github-actions
env:
GITHUB_SECRETS: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Checkout this
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache para las distros instaladas
uses: actions/cache@v2
id: meta6
with:
path: ~/.raku/
key: ${{ runner.os }}-${{ hashFiles('META6.json') }}
- name: Instala módulos Raku
if: steps.meta6.outputs.cache-hit != 'true'
continue-on-error: true
run: zef install --deps-only .
And try and include some module with File::Temp as a dependency. Don't know why this is singled out, no idea.
Your Environment
It's at ghcr.io/jj/raku-github-actions
raku -v
Welcome to Rakudo™ v2022.06.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.06.
zef list --installed
===> Found via /home/raku/.raku
File::Find:ver<0.1.1>
File::Which:ver<1.0.1>
LibraryMake:ver<1.0.0>:auth<github:retupmoca>
Linenoise:ver<0.1.2>:auth<zef:raku-community-modules>
Shell::Command
zef:ver<0.13.8>:auth<github:ugexe>:api<0>
===> Found via /usr/share/perl6/core
rakudo:ver<2022.06>:auth<Yet Another Society>
When compiling a file, apparently some part of
zef
is not looking atRAKULIB
Context
These github actions in the section "instala módulos Raku"
Expected Behavior
Use modules installed correctly and respect
RAKULIB
pathsActual Behavior
It fails to compile
File::Temp
, and the search path shows that it's not usingRAKULIB
(for this one only, apparently)You see above, it's installed,
RAKULIB
points to where it' sinstalled, but the path does not show it's searching that part.To reproduce, use a Github Action similar to this one:
And try and include some module with
File::Temp
as a dependency. Don't know why this is singled out, no idea.Your Environment
It's at ghcr.io/jj/raku-github-actions