Skip to content

Commit

Permalink
bump oci-distribution rev to get Os::Wasip1; update OCI config with a…
Browse files Browse the repository at this point in the history
…rch and os

Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice committed Oct 25, 2023
1 parent 6b1db26 commit dd07144
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/oci/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion crates/oci/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit dd07144

Please sign in to comment.