Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit aec24d2

Browse files
committed
Update deps
Signed-off-by: James Sturtevant <[email protected]>
1 parent ae5ff42 commit aec24d2

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ clean-%:
116116
spin-oci:
117117
mkdir -p staging
118118
docker build -o staging ./images/spin
119-
cargo install --path ../runwasi/crates/oci-tar-builder
119+
cargo install --path ../spin
120120

121-
# spin.json generated by spin registry push docker.io/jsturtevant/spin-wasm-shim:latest and looking at config
122-
# must be updated if the app changes.
123-
oci-tar-builder --name wasmtest_spin --repo docker.io/library --tag latest \
124-
--module ./staging/spin_rust_hello.wasm \
125-
--module ./staging/spin_go_hello.wasm \
126-
--layer application/vnd.fermyon.spin.application.v1+config=./staging/spin.json \
127-
-o test/out_spin/img-oci.tar
121+
# must be spin 2.0
122+
spin --version
123+
spin registry push docker.io/jsturtevant/spin-wasm-shim:latest-2.0

containerd-shim-spin-v1/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Containerd shim for running Spin workloads.
1414
containerd-shim = "0.6.0"
1515
containerd-shim-wasm = "0.4.0"
1616
log = "0.4"
17-
spin-trigger = { git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
18-
spin-trigger-http = { git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
19-
spin-redis-engine ={ git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
20-
spin-manifest = { git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
21-
spin-loader = { git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
22-
spin-app = { git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
23-
spin-oci = { git = "https://github.com/jsturtevant/spin", branch = "spin-oci" }
17+
spin-trigger = { git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
18+
spin-trigger-http = { git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
19+
spin-redis-engine ={ git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
20+
spin-manifest = { git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
21+
spin-loader = { git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
22+
spin-app = { git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
23+
spin-oci = { git = "https://github.com/jsturtevant/spin", rev = "1856ba8971f93beae5fe1f8e2e0961d7ad50d493" }
2424
wasmtime = "10.0.1"
2525
tokio = { version = "1", features = ["rt"] }
2626
openssl = { version = "*", features = ["vendored"] }

containerd-shim-spin-v1/src/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl SpinEngine {
120120
.write_all(&artifact.layer)
121121
.context("failed to write spin.json")?;
122122
},
123-
MediaType::Other(name) if name == WASM_LAYER_MEDIA_TYPE => {
123+
MediaType::Other(name) if name == "application/vnd.wasm.content.layer.v1+wasm" => {
124124
log::info!("writing artifact config to cache, near {:?}", cache.manifests_dir());
125125
cache.write_wasm(&artifact.layer, &artifact.config.digest()).await?;
126126
},

0 commit comments

Comments
 (0)