records: port to Go, and keep the checkout in a directory it owns

Every sync had failed since a container that ran as root left the checkout
root's: git refused it as dubious ownership, and records answered from a
stale copy. The Go bundle clones into repository/ under its directory, clears
the old layout where it can and names what it cannot. Drops the container-
runtime capability the move into the runtime left behind. hq issue 251.
This commit is contained in:
jochen
2026-10-05 17:42:08 +02:00
parent f74e1f0309
commit db9a5bff0c
13 changed files with 718 additions and 500 deletions
+5 -10
View File
@@ -2,9 +2,6 @@
"module": "records",
"version": "1",
"slug": "records",
"capabilities": [
"container-runtime"
],
"requires": [
"git"
],
@@ -60,14 +57,12 @@
{
"name": "code",
"kind": "bundle",
"language": "typescript",
"entrypoints": [
"index.js",
"tools/index.js"
],
"language": "go",
"system": "arch",
"from": "cmd/records",
"binary": "records",
"loads": [
"index.js",
"tools/index.js"
"records"
],
"env": {
"MESH_RECORDS_CONFIG_FILE": "${dir:mesh-state}/config.json",