Simplify inventory data file paths #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story: So that I can consume the public inventory without misleading legacy paths, generated inventory data should live in clearly named data locations that docs and downstream tooling all agree on.
Part of the "sshHosts derivation & inventory naming" arc.
The inventory repo still uses legacy data paths under
scripts/:scripts/vm-specs.jsonscripts/repositories.jsonThose files are generated/validated data, not scripts. In the public inventory repo this structure is misleading because the repo is primarily data plus a flake interface.
Proposed Direction
Move the JSON data files to clearer top-level paths, likely:
vm-specs.jsonrepositories.jsonAlternative: use a
data/directory if we want a namespace, but avoidscripts/unless actual executable scripts live there.Migration Scope
Update all consumers and docs that currently hardcode the legacy paths:
Compatibility Notes
Consider a short compatibility window where scripts can resolve both old and new paths, or make this cleanup as part of the public inventory/export boundary before external users depend on the legacy layout.
Acceptance Criteria
machines,lib.vmSpecsJson, validation checks).inventory/scripts/*.json.nix flake checkpasses in inventory and affected consumers.scripts/directory is absent unless it contains real executable scripts.