Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FROGGS/26970309d95afe25e4fc to your computer and use it in GitHub Desktop.
Save FROGGS/26970309d95afe25e4fc to your computer and use it in GitHub Desktop.
FROGGS has merged a panda branch called "eleven", which makes use of
the CompUnitRepo functionality of rakudo. The effect is that installed
distributions will not be put as files on disk, but go into a database
like thing. This is done to be able to install (and locate) several
same-named versions of a distributions, or distributions made by different
authors. These can now coexist, though as a consequence every distribution
must have a "provides" section [^1] in its META.info.
Such a "provides" section (or an entire META.info) can be generated by
running "panda gen-meta".
The CompUnitRepo database though is not just there to allow to lookup
namespaces by distribution version or author, it also copes with the issue
that arises when two distributions try to provide a binary/script with the
same name. The CompUnitRepo will install wrapper scripts instead, which
take --auth, --name and --ver options to select a specific binary or script
to execute. If the search result is ambiguous a list of candidates is
displayed to allow to refine the search criteria.
Next on FROGGS's TODO is to implement %?RESOURCE [^2] and also to look into
any fallout that happened because of his latest work.
[^1] http://design.perl6.org/S22.html#provides
[^2] http://design.perl6.org/S22.html#resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment