diff --git a/Cargo.lock b/Cargo.lock index baadd7a9c7..0b3be75437 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3995,7 +3995,7 @@ dependencies = [ [[package]] name = "oci-distribution" version = "0.10.0" -source = "git+https://github.com/fermyon/oci-distribution?rev=639c907b7c0c4e74716356585410d4abe4aebf4d#639c907b7c0c4e74716356585410d4abe4aebf4d" +source = "git+https://github.com/fermyon/oci-distribution?rev=63cbb0925775e0c9c870195cad1d50ac8707a264#63cbb0925775e0c9c870195cad1d50ac8707a264" dependencies = [ "bytes", "chrono", diff --git a/crates/oci/Cargo.toml b/crates/oci/Cargo.toml index e741a8bb14..33dfa5d90f 100644 --- a/crates/oci/Cargo.toml +++ b/crates/oci/Cargo.toml @@ -14,7 +14,7 @@ dkregistry = { git = "https://github.com/camallo/dkregistry-rs", rev = "37acecb4 docker_credential = "1.0" dirs = "4.0" futures-util = "0.3" -oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "639c907b7c0c4e74716356585410d4abe4aebf4d" } +oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "63cbb0925775e0c9c870195cad1d50ac8707a264" } reqwest = "0.11" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/crates/oci/src/client.rs b/crates/oci/src/client.rs index e783476830..55f1e833ed 100644 --- a/crates/oci/src/client.rs +++ b/crates/oci/src/client.rs @@ -174,8 +174,10 @@ impl Client { // Construct empty/default OCI config file. Data may be parsed according to // the expected config structure per the image spec, so we want to ensure it conforms. // (See https://github.com/opencontainers/image-spec/blob/main/config.md) - // TODO: Explore adding data applicable to a Spin app. + // TODO: Explore adding data applicable to the Spin app being published. let oci_config_file = ConfigFile { + architecture: oci_distribution::config::Architecture::Wasm, + os: oci_distribution::config::Os::Wasip1, ..Default::default() }; let oci_config =