Skip to content

Instantly share code, notes, and snippets.

@zengargoyle
Last active July 24, 2017 22:21
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 zengargoyle/b0b5d2a468e2796833d5bda46a507c78 to your computer and use it in GitHub Desktop.
Save zengargoyle/b0b5d2a468e2796833d5bda46a507c78 to your computer and use it in GitHub Desktop.
force precomp
# 02:36 < nine> zengargoyle: this seems to do the trick:
for $*REPO.repo-chain.grep(CompUnit::Repository::Installable) -> $repo {
for $repo.installed -> $dist {
for $dist.meta<provides>.keys -> $module {
next if $module eq "Zef::CLI";
$repo.need(
CompUnit::DependencySpecification.new(
short-name($module),
:ver($dist.meta<ver>)
)
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment