Author:
Hash:
Timestamp:
+4 -5 +/-2 browse
Kevin Schoon [me@kevinschoon.com]
fcf045c5d7209a96e55e9611acf93d38362c1d64
Sun, 13 Apr 2025 11:57:53 +0000 (6 months ago)
| 1 | diff --git a/examples/custom.rs b/examples/custom.rs |
| 2 | index 18fa445..419f71c 100644 |
| 3 | --- a/examples/custom.rs |
| 4 | +++ b/examples/custom.rs |
| 5 | @@ -8,7 +8,6 @@ async fn main() -> Result<(), Box<dyn Error>> { |
| 6 | base: Path::new("registry").to_path_buf(), |
| 7 | }; |
| 8 | fs.init()?; |
| 9 | - let oci_interface = OciInterface {storage: fs}; |
| 10 | - let blob = oci_interface.new_blob(); |
| 11 | + let _ = OciInterface {storage: fs}; |
| 12 | Ok(()) |
| 13 | } |
| 14 | diff --git a/src/address.rs b/src/address.rs |
| 15 | index 7fad17c..bd34217 100644 |
| 16 | --- a/src/address.rs |
| 17 | +++ b/src/address.rs |
| 18 | @@ -233,10 +233,10 @@ mod test { |
| 19 | } |
| 20 | .address() |
| 21 | .to_string() |
| 22 | - == "hello/world/tags/latest" |
| 23 | + == "repositories/hello/world/tags/latest/current/link" |
| 24 | ); |
| 25 | let uuid = Uuid::new_v4(); |
| 26 | - assert!(TempBlob::from(&uuid).address().to_string() == format!("tmp/{}", uuid)); |
| 27 | + assert!(TempBlob{uuid: &uuid, namespace: &namespace}.address().to_string() == format!("repositories/hello/world/tmp/{}", uuid)); |
| 28 | let digest = Digest::from_str( |
| 29 | "sha256:57f2ae062b76cff6f5a511fe6f907decfdefd6495e6afa31c44e0a6a1eca146f", |
| 30 | ) |
| 31 | @@ -252,7 +252,7 @@ mod test { |
| 32 | } |
| 33 | .address() |
| 34 | .to_string() |
| 35 | - == "hello/world/manifests/sha256/57f2ae062b76cff6f5a511fe6f907decfdefd6495e6afa31c44e0a6a1eca146f" |
| 36 | + == "repositories/hello/world/manifests/revisions/sha256/57f2ae062b76cff6f5a511fe6f907decfdefd6495e6afa31c44e0a6a1eca146f/link" |
| 37 | ) |
| 38 | } |
| 39 | } |