| 1 | module the-valley/valleyhook |
| 2 | |
| 3 | go 1.24 |
| 4 | |
| 5 | require ( |
| 6 | the-valley/change v0.0.0 |
| 7 | the-valley/exactjson v0.0.0 |
| 8 | the-valley/knot v0.0.0 |
| 9 | the-valley/note v0.0.0 |
| 10 | ) |
| 11 | |
| 12 | // The note envelope is shared with attest (../attest), so the hook reads a |
| 13 | // pushed note exactly the way a verifier does. The change record is shared |
| 14 | // with the valley command (../status), so the hook reads a pushed record |
| 15 | // exactly the way the command that wrote it does. The plan graph is |
| 16 | // shared with the valley command too, so the hook validates a pushed graph |
| 17 | // by the rules the command wrote it by. The push policy is read with |
| 18 | // exactjson (../exactjson), which holds every key to the spelling of its |
| 19 | // field, as the identity compiler reads the registry. All four live in this |
| 20 | // repository and are never fetched. |
| 21 | replace ( |
| 22 | the-valley/change => ../change |
| 23 | the-valley/exactjson => ../exactjson |
| 24 | the-valley/knot => ../knot |
| 25 | the-valley/note => ../note |
| 26 | ) |