invalid reference format for aurora-dx

I get this only when running locally. I've tried version v0.9.5 and also v0.9.7
INFO => Recipe ./recipes/recipe.yml is valid
INFO => Templating for recipe at ./recipes/recipe.yml
INFO => Retrieving OS version from ghcr.io/ublue-os/aurora-dx:41
WARN => Unable to get version via image inspection due to error:
× Failed to parse version from metadata for ghcr.io/ublue-os/aurora-dx:41

WARN => Pulling and running the image to retrieve the version. This will take a while...
ERROR => Failed:
× invalid reference format
INFO => Recipe ./recipes/recipe.yml is valid
INFO => Templating for recipe at ./recipes/recipe.yml
INFO => Retrieving OS version from ghcr.io/ublue-os/aurora-dx:41
WARN => Unable to get version via image inspection due to error:
× Failed to parse version from metadata for ghcr.io/ublue-os/aurora-dx:41

WARN => Pulling and running the image to retrieve the version. This will take a while...
ERROR => Failed:
× invalid reference format
8 Replies
xyny
xyny2w ago
Is this the version from cargo? I believe this or a related issue was fixed already. https://github.com/blue-build/cli/issues/339 Though that fix should already be present in v0.9.7... @Luke Skywunker might be able to help
Doug
DougOP2w ago
I cloned from git, checked out the v0.9.7 tag, and then cargo build --locked --release bluebuild build -vv output:
[11:30:48 INFO blue_build::commands::generate:134] => Templating for recipe at ./recipes/recipe.yml
[11:30:48 TRACE blue_build_process_management::drivers:196] => Driver::get_os_version(Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
})
[11:30:48 INFO blue_build_process_management::drivers:207] => Retrieving OS version from ghcr.io/ublue-os/aurora-dx:41
[11:30:48 TRACE blue_build_process_management::drivers::skopeo_driver:30] => SkopeoDriver::get_metadata(GetMetadataOpts {
image: Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
},
platform: Native,
})
[11:30:48 TRACE blue_build_process_management::drivers::skopeo_driver:51] => "skopeo" "inspect" "docker://ghcr.io/ublue-os/aurora-dx:41"
[11:30:52 DEBUG blue_build_process_management::drivers::skopeo_driver:59] => Successfully inspected image ghcr.io/ublue-os/aurora-dx:41!
[11:30:52 WARN blue_build_process_management::drivers:224] => Unable to get version via image inspection due to error:
× Failed to parse version from metadata for ghcr.io/ublue-os/aurora-dx:41

[11:30:52 WARN blue_build_process_management::drivers:259] => Pulling and running the image to retrieve the version. This willtake a while...
[11:30:52 TRACE blue_build_process_management::drivers::docker_driver:576] => "docker" "images" "--format" "json"
[11:30:52 ERROR blue_build::commands:38] => Failed:
× invalid reference format
[11:30:48 INFO blue_build::commands::generate:134] => Templating for recipe at ./recipes/recipe.yml
[11:30:48 TRACE blue_build_process_management::drivers:196] => Driver::get_os_version(Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
})
[11:30:48 INFO blue_build_process_management::drivers:207] => Retrieving OS version from ghcr.io/ublue-os/aurora-dx:41
[11:30:48 TRACE blue_build_process_management::drivers::skopeo_driver:30] => SkopeoDriver::get_metadata(GetMetadataOpts {
image: Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
},
platform: Native,
})
[11:30:48 TRACE blue_build_process_management::drivers::skopeo_driver:51] => "skopeo" "inspect" "docker://ghcr.io/ublue-os/aurora-dx:41"
[11:30:52 DEBUG blue_build_process_management::drivers::skopeo_driver:59] => Successfully inspected image ghcr.io/ublue-os/aurora-dx:41!
[11:30:52 WARN blue_build_process_management::drivers:224] => Unable to get version via image inspection due to error:
× Failed to parse version from metadata for ghcr.io/ublue-os/aurora-dx:41

[11:30:52 WARN blue_build_process_management::drivers:259] => Pulling and running the image to retrieve the version. This willtake a while...
[11:30:52 TRACE blue_build_process_management::drivers::docker_driver:576] => "docker" "images" "--format" "json"
[11:30:52 ERROR blue_build::commands:38] => Failed:
× invalid reference format
Luke Skywunker
This is something different from that issue This appears to be around pulling the image for docker to run it and find the version if the version in the label is an invalid format It does a check to see if you already have the image pulled so that it will remove the image after its check is done to save space This is because the docker build uses buildx to build your image and it doesn't have access to the local docker registry which would cause duplicated images which take up space @Doug if you run docker images --format json, do you have anything print out? Does the command fail at all?
Doug
DougOP2w ago
it does print, and does not fail
Luke Skywunker
Ok, I'm going to push a small commit to main that should add more context for the error you're running into Can you install it and try again using cargo install --git https://github.com/blue-build/cli.git --locked? And put the error you get here Or I guess you already have it checked out, so build what's on main either way
Doug
DougOP2w ago
[12:55:30 INFO blue_build::commands::generate:134] => Templating for recipe at ./recipes/recipe.yml
[12:55:30 TRACE blue_build_process_management::drivers:196] => Driver::get_os_version(Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
})
[12:55:30 INFO blue_build_process_management::drivers:207] => Retrieving OS version from ghcr.io/ublue-os/aurora-dx:41
[12:55:30 TRACE blue_build_process_management::drivers::skopeo_driver:30] => SkopeoDriver::get_metadata(GetMetadataOpts {
image: Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
},
platform: Native,
})
[12:55:30 TRACE blue_build_process_management::drivers::skopeo_driver:51] => "skopeo" "inspect" "docker://ghcr.io/ublue-os/aurora-dx:41"
[12:55:33 DEBUG blue_build_process_management::drivers::skopeo_driver:59] => Successfully inspected image ghcr.io/ublue-os/aurora-dx:41!
[12:55:33 WARN blue_build_process_management::drivers:224] => Unable to get version via image inspection due to error:
× Failed to parse version from metadata for ghcr.io/ublue-os/aurora-dx:41

[12:55:33 WARN blue_build_process_management::drivers:259] => Pulling and running the image to retrieve the version. This willtake a while...
[12:55:33 TRACE blue_build_process_management::drivers::docker_driver:576] => "docker" "images" "--format" "json"
[12:55:34 ERROR blue_build::commands:38] => Failed:
× While parsing Image { repository: "<none>", tag: "<none>" }
╰─▶ invalid reference format
[12:55:30 INFO blue_build::commands::generate:134] => Templating for recipe at ./recipes/recipe.yml
[12:55:30 TRACE blue_build_process_management::drivers:196] => Driver::get_os_version(Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
})
[12:55:30 INFO blue_build_process_management::drivers:207] => Retrieving OS version from ghcr.io/ublue-os/aurora-dx:41
[12:55:30 TRACE blue_build_process_management::drivers::skopeo_driver:30] => SkopeoDriver::get_metadata(GetMetadataOpts {
image: Reference {
registry: "ghcr.io",
repository: "ublue-os/aurora-dx",
tag: Some(
"41",
),
digest: None,
},
platform: Native,
})
[12:55:30 TRACE blue_build_process_management::drivers::skopeo_driver:51] => "skopeo" "inspect" "docker://ghcr.io/ublue-os/aurora-dx:41"
[12:55:33 DEBUG blue_build_process_management::drivers::skopeo_driver:59] => Successfully inspected image ghcr.io/ublue-os/aurora-dx:41!
[12:55:33 WARN blue_build_process_management::drivers:224] => Unable to get version via image inspection due to error:
× Failed to parse version from metadata for ghcr.io/ublue-os/aurora-dx:41

[12:55:33 WARN blue_build_process_management::drivers:259] => Pulling and running the image to retrieve the version. This willtake a while...
[12:55:33 TRACE blue_build_process_management::drivers::docker_driver:576] => "docker" "images" "--format" "json"
[12:55:34 ERROR blue_build::commands:38] => Failed:
× While parsing Image { repository: "<none>", tag: "<none>" }
╰─▶ invalid reference format
Luke Skywunker
Aha! Alright, I'll be sure to take <none> into account Ok, pushed a fix out to main. Mind building and trying once more to see if that fixed it? I'm running some tests myself, but I have to get some untagged images in my local registry first Seems to work for me
Doug
DougOP2w ago
yes, it's working for me as well

Did you find this page helpful?