| 1 | module the-valley/valleyhook |
| 2 | |
| 3 | go 1.24 |
| 4 | |
| 5 | require ( |
| 6 | the-valley/approval v0.0.0 |
| 7 | the-valley/change v0.0.0 |
| 8 | the-valley/knot v0.0.0 |
| 9 | the-valley/note v0.0.0 |
| 10 | the-valley/pushpolicy v0.0.0 |
| 11 | the-valley/telemetry v0.0.0 |
| 12 | ) |
| 13 | |
| 14 | require the-valley/exactjson v0.0.0 // indirect |
| 15 | |
| 16 | // The note envelope is shared with attest (../attest), so the hook reads a |
| 17 | // pushed note exactly the way a verifier does. An approval's ref and note |
| 18 | // are read with the approval format (../approval), which the client that |
| 19 | // writes one and every reader of one share. The change record is shared |
| 20 | // with the valley command (../status), so the hook reads a pushed record |
| 21 | // exactly the way the command that wrote it does. The plan graph is |
| 22 | // shared with the valley command too, so the hook validates a pushed graph |
| 23 | // by the rules the command wrote it by. The push policy is read with |
| 24 | // the push policy reader (../pushpolicy), which any other reader of it |
| 25 | // shares, and which reads with exactjson (../exactjson), holding every key |
| 26 | // to the spelling of its field, as the identity compiler reads the |
| 27 | // registry. The telemetry command's grammar (../telemetry) is shared with |
| 28 | // the collector, so the shell passes on exactly what the collector |
| 29 | // accepts. All seven live in this repository and are never fetched. |
| 30 | replace ( |
| 31 | the-valley/approval => ../approval |
| 32 | the-valley/change => ../change |
| 33 | the-valley/exactjson => ../exactjson |
| 34 | the-valley/knot => ../knot |
| 35 | the-valley/note => ../note |
| 36 | the-valley/pushpolicy => ../pushpolicy |
| 37 | the-valley/telemetry => ../telemetry |
| 38 | ) |