Tests that read ../../../mesh-catalog or ../../../mesh-host gave a verdict that depended on what sat beside the checkout: a stale or dirty sibling failed them on a desktop, and a missing one skipped them unseen. They now read the clone the build seat puts in MESH_CHECK_BESIDE, failing when it is absent there, and elsewhere a copy captured at a named commit. The skip had hidden that the builder test read a module retired by ADR 0190. The systemd reading test no longer counts the machine's own environment.d.
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
{
|
|
"module": "node-env",
|
|
"version": "1",
|
|
"claims": [
|
|
{
|
|
"name": "node-environment",
|
|
"scope": "node"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "mesh-config-dir",
|
|
"type": "directory",
|
|
"path": "${machine:account-home}/.config/mesh",
|
|
"owner": "${machine:account}",
|
|
"mode": "0755"
|
|
},
|
|
{
|
|
"id": "environment-d",
|
|
"type": "directory",
|
|
"path": "${machine:account-home}/.config/environment.d",
|
|
"owner": "${machine:account}",
|
|
"mode": "0755"
|
|
},
|
|
{
|
|
"id": "posix",
|
|
"type": "file",
|
|
"path": "${machine:account-home}/.config/mesh/environment.sh",
|
|
"owner": "${machine:account}",
|
|
"mode": "0644",
|
|
"content": "# The operator account's environment, generated by the mesh (module node-env, novox/hq ADR 0203).\n# Do not edit: this file is replaced at every push. Every line names the module that contributed it.\n# Sourced by the login shell from its always-read startup file (for zsh, ~/.zshenv), so a script, a\n# login and the shell's execute verb all see it. Your own variables belong in your shell's own lines.\n${environment:posix}"
|
|
},
|
|
{
|
|
"id": "systemd",
|
|
"type": "file",
|
|
"path": "${machine:account-home}/.config/environment.d/50-mesh.conf",
|
|
"owner": "${machine:account}",
|
|
"mode": "0644",
|
|
"content": "# The operator account's environment for its service manager and graphical session, generated by\n# the mesh (module node-env, novox/hq ADR 0203). Do not edit: this file is replaced at every push.\n# The same facts as ~/.config/mesh/environment.sh, in environment.d(5) syntax.\n${environment:systemd}"
|
|
}
|
|
]
|
|
}
|