Genesis installs distribution, which is what the software is called
The module that provides artifact-store runs Distribution, the OCI reference implementation. It was called registry, which named neither the software nor the provision. Claude-Session: https://claude.ai/code/session_01D6qtiYU3P9jk3pnAXyAFyx
This commit is contained in:
@@ -10,7 +10,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// RegistryModule is the module that provides the mesh's artifact store.
|
// 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.
|
// 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
|
// What the container is CALLED is read from the manifest rather than assumed, because the name is
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ func catalogueWith(t *testing.T, module, manifest string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const upstreamRegistryManifest = `{
|
const upstreamRegistryManifest = `{
|
||||||
"module": "registry",
|
"module": "distribution",
|
||||||
"version": "1",
|
"version": "1",
|
||||||
"provides": [{"name": "artifact-store", "scope": "mesh"}],
|
"provides": [{"name": "artifact-store", "scope": "mesh"}],
|
||||||
"capabilities": ["container-runtime"],
|
"capabilities": ["container-runtime"],
|
||||||
@@ -137,8 +137,8 @@ func TestARegistryThatAnswersIsAccepted(t *testing.T) {
|
|||||||
}
|
}
|
||||||
// Registered, assigned and pushed, through the same three commands a person types.
|
// Registered, assigned and pushed, through the same three commands a person types.
|
||||||
for _, wanted := range []string{
|
for _, wanted := range []string{
|
||||||
"module add /registry-module.json",
|
"module add /distribution-module.json",
|
||||||
"assign anchor registry",
|
"assign anchor distribution",
|
||||||
"push anchor",
|
"push anchor",
|
||||||
} {
|
} {
|
||||||
if !runtime.ran(wanted) {
|
if !runtime.ran(wanted) {
|
||||||
|
|||||||
Reference in New Issue
Block a user