{"record":{"id":"111daabb20b88d24","repo":"jdx/mise","slug":"push-destination-must-be-a-fully-qualified-referen","errorCode":null,"errorMessage":"push destination must be a fully-qualified reference (e.g. `ghcr.io/you/devenv:tag`); got {:?}","messagePattern":"push destination must be a fully-qualified reference \\(e\\.g\\. `ghcr\\.io/you/devenv:tag`\\); got (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/oci/push.rs","lineNumber":96,"sourceCode":"    #[usage(long, value_name = \"UID[:GID]\")]\n    owner: Option<LayerOwner>,\n\n    /// Maintain the tag as a multi-arch image index\n    ///\n    /// Pushes this build's manifest by digest and points the tag at an OCI\n    /// image index containing one entry per platform, preserving entries\n    /// other architectures pushed. Run `mise oci push --update-index` from\n    /// one runner per platform to assemble a multi-arch tag.\n    #[usage(long)]\n    update_index: bool,\n}\n\nimpl Push {\n    pub(super) async fn run(self) -> Result<()> {\n        Settings::get().ensure_experimental(\"mise oci push\")?;\n\n        if !self.reference.contains('/') {\n            bail!(\n                \"push destination must be a fully-qualified reference \\\n                 (e.g. `ghcr.io/you/devenv:tag`); got {:?}\",\n                self.reference\n            );\n        }\n        // Keep the temp dir alive for the duration of the push — it removes\n        // itself on drop, so multi-hundred-megabyte image layouts don't\n        // accumulate in /tmp.\n        let mut reused_layers = 0;\n        let (image_dir, _tempdir_guard): (PathBuf, Option<TempDir>) =\n            if let Some(d) = &self.image_dir {\n                if !d.join(\"index.json\").is_file() {\n                    bail!(\n                        \"{}: does not look like an OCI image layout (missing index.json)\",\n                        d.display()\n                    );\n                }\n                (d.clone(), None)","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/oci/push.rs#L78-L114","documentation":"`mise oci push` validates that the --reference argument is a fully-qualified OCI registry reference. A string without a '/' cannot contain a registry host and repository, so it cannot be parsed as a push destination. The error shows the received value in debug form.","triggerScenarios":"Running `mise oci push <name>` where <name> contains no '/' — e.g. `mise oci push devenv` or `mise oci push devenv:tag` — from Push::run, after the experimental gate.","commonSituations":"Forgetting the registry host (assuming a default like docker.io), following examples written for tools that auto-prefix docker.io, or passing a bare image name intended for a local build tag.","solutions":["Prefix the image with a registry host and namespace: ghcr.io/you/devenv:tag","Use docker.io/you/devenv:tag if you intend Docker Hub","Confirm the reference includes registry/repository(:tag) before pushing"],"exampleFix":"// before\nmise oci push devenv:latest\n// after\nmise oci push ghcr.io/myuser/devenv:latest","handlingStrategy":"validation","validationCode":"[[ \"$ref\" == */* ]] || { echo \"reference must be registry/repo:tag\"; exit 1; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always include the registry host and namespace in push references","Copy the exact reference used at build time, which already includes the registry","Remember docker.io requires an explicit namespace even for official images"],"tags":["oci","cli-argument","registry"],"backgroundTag":"invalid-cli-argument","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}