You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): emit legacy vnd.cnai.* identifiers for registry compat
PR #415 switched modctl from dragonflyoss/model-spec to modelpack/
model-spec, which moved every wire-format identifier from the
vnd.cnai.* / org.cnai.* family to vnd.cncf.* / org.cncf.*. Registries
whose MODEL artifact processor is still keyed on the legacy
identifiers cannot dispatch the new manifests and return
"processor for artifact MODEL not found" on /additions/* endpoints.
Centralize the legacy identifiers in pkg/backend/build/legacy.go and
point every build-path write site at them: manifest artifactType,
config blob mediaType, the eight layer mediaTypes, layer annotations
(filepath, file metadata), the manifest-level modctl modelfile
annotation, plus two raw-weight cache-key compares in
computeDigestAndSize so the digest cache stays consistent with the
emitted strings.
The Go-level modelspec package and the read/inspect paths
(inspect.go, pull.go, fetch.go, attach.go, codec/raw.go) are
untouched, so artifacts produced by either identifier family
remain readable.
Delete pkg/backend/build/legacy.go and revert the call sites to
modelspec.* once downstream registries register processors for the
modelpack identifiers.
Signed-off-by: Zhao Chen <winters.zc@antgroup.com>
0 commit comments