ugexe / zef

Raku Module Management
Artistic License 2.0
207 stars 44 forks source link

Zef::Repository.candidates gets surprised by Nil return of search calls (related to native dependencies?) #568

Open timo opened 3 weeks ago

timo commented 3 weeks ago

When running zef depends Git::Files which depends on git:from<bin>, i.e. a native dependency, then in this code:

https://github.com/ugexe/zef/blob/da187d34993b3a51f926886668765f1976d883cf/lib/Zef/Repository.rakumod#L139-L147

either $group-results or $group-results.flat will result in (Nil,).Seq, causing %searchable{Nil} = 0;, which outputs a warning.

ugexe commented 3 weeks ago

Huh, I did not expect this type of behavior

$ raku -e 'say Nil.asaasdfasdf'
Nil