diff --git a/internal/bootstrap/registry.go b/internal/bootstrap/registry.go index 637d9e7..2578473 100644 --- a/internal/bootstrap/registry.go +++ b/internal/bootstrap/registry.go @@ -10,7 +10,12 @@ import ( ) // RegistryModule is the module that provides the mesh's artifact store. -const RegistryModule = "registry" +// +// **Named for the software, not the job.** The job is `artifact-store`, which is the provision this +// module offers; the software is Distribution, the OCI reference implementation. Calling the module +// `registry` named neither — and promised that any registry could sit there, which is the false +// genericity the naming rule forbids (novox/hq ADR 0040). +const RegistryModule = "distribution" // registryResource is the id of the resource in that module's manifest that runs the registry. // What the container is CALLED is read from the manifest rather than assumed, because the name is diff --git a/internal/bootstrap/registry_test.go b/internal/bootstrap/registry_test.go index 52f923d..effae95 100644 --- a/internal/bootstrap/registry_test.go +++ b/internal/bootstrap/registry_test.go @@ -35,7 +35,7 @@ func catalogueWith(t *testing.T, module, manifest string) string { } const upstreamRegistryManifest = `{ - "module": "registry", + "module": "distribution", "version": "1", "provides": [{"name": "artifact-store", "scope": "mesh"}], "capabilities": ["container-runtime"], @@ -137,8 +137,8 @@ func TestARegistryThatAnswersIsAccepted(t *testing.T) { } // Registered, assigned and pushed, through the same three commands a person types. for _, wanted := range []string{ - "module add /registry-module.json", - "assign anchor registry", + "module add /distribution-module.json", + "assign anchor distribution", "push anchor", } { if !runtime.ran(wanted) {