jdx/mise · error
push destination must be a fully-qualified reference (e.g…
Error message
push destination must be a fully-qualified reference (e.g. `ghcr.io/you/devenv:tag`); got {:?} What it means
`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.
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
Example fix
// before mise oci push devenv:latest // after mise oci push ghcr.io/myuser/devenv:latest
Defensive patterns
Strategy: validation
Validate before calling
[[ "$ref" == */* ]] || { echo "reference must be registry/repo:tag"; exit 1; } Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: "Unknown argument", "Invalid value", and "must be one of": invalid CLI argument errors explained — this error's family across 35 libraries.
Related errors
- --cache-from must reference the same repository as the…
- fetching current index for
- fetching failed
- fetching failed
- manifest push failed
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/111daabb20b88d24.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/oci/push.rs:96
#[usage(long, value_name = "UID[:GID]")]
owner: Option<LayerOwner>,
/// Maintain the tag as a multi-arch image index
///
/// Pushes this build's manifest by digest and points the tag at an OCI
/// image index containing one entry per platform, preserving entries
/// other architectures pushed. Run `mise oci push --update-index` from
/// one runner per platform to assemble a multi-arch tag.
#[usage(long)]
update_index: bool,
}
impl Push {
pub(super) async fn run(self) -> Result<()> {
Settings::get().ensure_experimental("mise oci push")?;
if !self.reference.contains('/') {
bail!(
"push destination must be a fully-qualified reference \
(e.g. `ghcr.io/you/devenv:tag`); got {:?}",
self.reference
);
}
// Keep the temp dir alive for the duration of the push — it removes
// itself on drop, so multi-hundred-megabyte image layouts don't
// accumulate in /tmp.
let mut reused_layers = 0;
let (image_dir, _tempdir_guard): (PathBuf, Option<TempDir>) =
if let Some(d) = &self.image_dir {
if !d.join("index.json").is_file() {
bail!(
"{}: does not look like an OCI image layout (missing index.json)",
d.display()
);
}
(d.clone(), None)View on GitHub (pinned to 533346cc37)