zef icon indicating copy to clipboard operation
zef copied to clipboard

zef info: 'Use of uninitialized value element' warning when META6.json contains explicit null

Open coke opened this issue 8 months ago • 1 comments

(happens with older zefs also)

➜  ~ zef --version
1.0.0
➜  ~ zef info xxirakup6-RandomColor
===> Searching for: xxirakup6-RandomColor
- Info for: xxirakup6-RandomColor
- Identity: xxirakup6-RandomColor:ver<v.0.11>:auth<zef:Xliff>
- Recommended By: Zef::Repository::Ecosystems<fez>
- Installed: No
Description:	 A port of the randomColor Javascript library for generating attractive random colors
Provides: 1 modules
Support:
Use of uninitialized value element of type Any in string context.
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
  in block  at /Users/coke/.rakubrew/versions/moar-2025.03/share/perl6/site/sources/0A0B8E741A985327CFC9D7FF5645992A90D75D80 (Zef::CLI) line 873
#   source:
Depends: 1 items

coke avatar Apr 14 '25 01:04 coke

I think that distribution is intended to be raku-RandomColor and not xxirakup6-RandomColor.

Its META6.json file contains

"support": {"source": null},

I'm kind of conflicted. I suppose it could be an improvement in zef to not try to stringify such explicit nulls, but that is also going into META6.json validation territory.

ugexe avatar Apr 14 '25 02:04 ugexe