Closed hythm7 closed 4 years ago
Fixed in this commit
Looks like CompUnit::RepositoryRegistry.register-name
is causing the issue to %?RESOURCES
.
(This issue may exist in Raku
's default repos as well home site vendor
, I haven't tested them yet).
Will look into CompUnit::RepositoryRegistry.register-name
in Rakudo
to better understand the issue
and create an issue in Rakudo
When registering a name for CURI via CompUnit::RepositoryRegistry
, the same name need to be registered everytime a new process of Raku
runs.
Installing dist
A
to/my/custom/repo
and:dist
A
depends on distB
, distB
uses%?RESOURCES
, then distA
tests might fail if the test file uses distB
, because %?RESOURCES< exisitng-file > of dist B returns Nil.The error: (where License::SPDX resources returns Nil when loaded from
inst#/my/custom/repo
)The below command will fail testing phase because
%?RESOURCES
ofLicense::SPDX
is not available during testingTest::META
pakku install verbose trace add to /my/custom/repo Test::META
Same command work fine if installed to any of
Raku
's reposhome site vendor
pakku install verbose trace add Test::META
# works and installed to repohome
by defaultOffending code is here: the issue disappears when removing
$*repo
(in this caseinst#/my/custom/repo
) frominclude
path and test pass, I think becauseLicense::SPDX
is loaded from another repohome, site or vendor
where it is able to find its%?RESOURCES