diff --git a/src/utils/reference.rs b/src/utils/reference.rs index 8d544b4..ed26fa2 100644 --- a/src/utils/reference.rs +++ b/src/utils/reference.rs @@ -16,7 +16,7 @@ pub fn split(reference: &str) -> (String, String, String) { } } }; - let splits = repository_and_tag.split(':').collect::>(); + let splits = repository_and_tag.split('@').next().unwrap().split(':').collect::>(); let (repository, tag) = match splits.len() { 1 | 2 => { let repository_components = splits[0].split('/').collect::>(); @@ -38,7 +38,7 @@ pub fn split(reference: &str) -> (String, String, String) { }; (repository, tag) } - _ => unreachable!(), + _ => {dbg!(splits); panic!()}, }; (registry.to_string(), repository, tag.to_string()) }