Skip to content

Commit dbd7a53

Browse files
committed
bump oci-distribution rev to get Os::Wasip1; update OCI config with arch and os
Signed-off-by: Vaughn Dice <[email protected]>
1 parent 4f62bde commit dbd7a53

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oci/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dkregistry = { git = "https://github.com/camallo/dkregistry-rs", rev = "37acecb4
1414
docker_credential = "1.0"
1515
dirs = "4.0"
1616
futures-util = "0.3"
17-
oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "639c907b7c0c4e74716356585410d4abe4aebf4d" }
17+
oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "63cbb0925775e0c9c870195cad1d50ac8707a264" }
1818
reqwest = "0.11"
1919
serde = { version = "1.0", features = ["derive"] }
2020
serde_json = "1.0"

crates/oci/src/client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ impl Client {
174174
// Construct empty/default OCI config file. Data may be parsed according to
175175
// the expected config structure per the image spec, so we want to ensure it conforms.
176176
// (See https://github.com/opencontainers/image-spec/blob/main/config.md)
177-
// TODO: Explore adding data applicable to a Spin app.
177+
// TODO: Explore adding data applicable to the Spin app being published.
178178
let oci_config_file = ConfigFile {
179+
architecture: oci_distribution::config::Architecture::Wasm,
180+
os: oci_distribution::config::Os::Wasip1,
179181
..Default::default()
180182
};
181183
let oci_config =

0 commit comments

Comments
 (0)