Compare commits
1 Commits
8622b35f48
...
5b6c158d2e
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b6c158d2e |
@@ -8,9 +8,17 @@
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
|
||||
# A valid tree covering every discovery shape at once: two top-level skills
|
||||
# (alpha, delta), a skill nested under a cosmetic container (beta, which also
|
||||
# owns an asset subfolder whose own SKILL.md must NOT become a skill), and a
|
||||
# skill several containers deep (gamma).
|
||||
discovered = discoverSkills ./fixtures/valid;
|
||||
built = map (skill: mkSkill { inherit pkgs; inherit (skill) name src; }) discovered;
|
||||
|
||||
# Discovery of a tree with two skills resolving to the same name must throw at
|
||||
# eval.
|
||||
# tryEval catches the throw, so the check can assert discovery failed rather
|
||||
# than silently clobbering.
|
||||
collision = builtins.tryEval (discoverSkills ./fixtures/collision);
|
||||
|
||||
discoveredNames = lib.sort (a: b: a < b) (map (skill: skill.name) discovered);
|
||||
|
||||
Reference in New Issue
Block a user