ugexe / zef

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

Use fallback versions in import statements #539

Closed ugexe closed 11 months ago

ugexe commented 11 months ago

Zef tries to only load code from the version it was packaged with by doing use Zef:ver($?DISTRIBUTION.meta<version>). However, some CompUnit::Repository::Registry return a Distribution that only has a ver (not version) field which would result in use Zef:ver<> which isn't a legal import statement. The adds a fallback to the ver field, as well as explicitly adding the Raku defaults for all import adverbs.