You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dist A depends on dist B,
dist B uses %?RESOURCES, then
dist A tests might fail if the test file uses dist B, because %?RESOURCES< exisitng-file > of dist B returns Nil.
The error: (where License::SPDX resources returns Nil when loaded from inst#/my/custom/repo)
🔔 Type check failed in binding to parameter '$json'; expected Strbut got Nil (Nil)
🔔 in methodfrom-json at repo#sources/C0029D661A8CA443DB83A67FE58F3E10D590C1A0 (JSON::Class) line 90
🔔 in methodnew at repo#sources/4E66FDBA4785D40812EC4D781E0EB1263E3D4196 (License::SPDX) line 138
🔔 in subcheck-license at /tmp/Test-META-0.0.16/lib/Test/META.pm (Test::META) line 179
🔔 in block <unit> at t/020-internals.t line 55
🔔
💀 TST:「Test::META:ver<0.0.16>:auth<github:jonathanstowe>:api<1.0>」
Nofun
The below command will fail testing phase because %?RESOURCES of License::SPDX is not available during testing Test::META
pakku install verbose trace add to /my/custom/repo Test::META
Same command work fine if installed to any of Raku's repos home site vendor pakku install verbose trace add Test::META # works and installed to repo home by default
Offending code is here: the issue disappears when removing $*repo (in this case inst#/my/custom/repo ) from include path and test pass, I think because License::SPDX is loaded from another repo home, site or vendor where it is able to find its %?RESOURCES
The text was updated successfully, but these errors were encountered:
hythm7
changed the title
%?RESOURCES returns Nil during test phase of custom repo installation
%?RESOURCES returns Nil during test phase in custom repo installation
Oct 20, 2019
hythm7
changed the title
%?RESOURCES returns Nil during test phase in custom repo installation
%?RESOURCES returns Nil during test phase of dist installed to inst#/pat/to/some/dir
Oct 2, 2020
hythm7
changed the title
%?RESOURCES returns Nil during test phase of dist installed to inst#/pat/to/some/dir
%?RESOURCES returns Nil during test phase of dist installed to inst#/path/to/some/dir
Oct 2, 2020
hythm7
changed the title
%?RESOURCES returns Nil during test phase of dist installed to inst#/path/to/some/dir
%?RESOURCES is not available when dist is installed to inst#/my/custom/repo
Oct 2, 2020
Installing dist
A
to/my/custom/repo
and:dist
A
depends on distB
,dist
B
uses%?RESOURCES
, thendist
A
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
The text was updated successfully, but these errors were encountered: