| 1 | # The deriver of required checks (derive/), and the model of the composed |
| 2 | # policy it derives from (composed/), held by the deriver's own tests. |
| 3 | { |
| 4 | packages, |
| 5 | ... |
| 6 | }: |
| 7 | { |
| 8 | # Run in the package's checkPhase with go vet: the glob language by |
| 9 | # example, a diff's paths read from git diff -z and every cut of it |
| 10 | # refused, and the deriver's rules over a policy written in the test. |
| 11 | # Then the deriver held to bin/valley's: both run over the repository's |
| 12 | # own policy, the example policies and paths drawn from a fixed seed, |
| 13 | # with bin/valley under the C, C.UTF-8 and en_US.UTF-8 locales and the |
| 14 | # layers in directories named like glob patterns. Every global of |
| 15 | # bin/valley's derivation must equal the Go answer: the documents |
| 16 | # composed, the changed paths, the classes, the carry mode, the |
| 17 | # unclassified paths, and each required check's classes, pin, runner, |
| 18 | # attribute, command and cost. Each glob is held to glob_ere and each diff |
| 19 | # reading to diff_paths, run by bash out of bin/valley itself. Both refuse |
| 20 | # what cue vet rejects, a schema older than either, and a layer with no |
| 21 | # document that bash's glob names. Where bin/valley is wrong |
| 22 | # (bd-11e0e4d), the test records what each answers: a path holding a |
| 23 | # newline, a class added by refining policy that requires an undefined |
| 24 | # check, and a class named unclassified. |
| 25 | derive-unit = packages.derive; |
| 26 | } |