gunk-dev/the-valley

floor-pins-exact.cue

sourcecd1cc87ff81dmain's published tip history
752 bytes
1// Carry case 1. The floor pins `exact` on the guarded class, so the class
2// resolves to `exact`. The template adds nothing, and the project adds a path
3// to the class and leaves its carry alone. The same project writing
4// `exact: false` is rejected/project-drops-floor-exact.cue.
5//
6// Each case here is the three layers composed in one document, as
7// schema/verification.cue composes them. cue-vet vets each one and checks
8// the mode the class resolves to.
9package verification
10
11floor: {
12 checks: "c-build": {runner: "nix", attribute: "c-build"}
13 classes: guarded: {
14 paths: "keys/**": true
15 requires: "c-build": true
16 carry: exact: true
17 }
18}
19
20templates: plain: {}
21type: "plain"
22
23project: classes: guarded: paths: "grants/**": true