From ddf36366965ebe4d1d674ea91a136993f5dcde09 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Mon, 9 Oct 2023 13:08:09 -0700 Subject: [PATCH] Fix tests. --- crates/core/src/error.rs | 2 +- plugins/Cargo.lock | 15 +++++++++++---- plugins/wasm-test/src/lib.rs | 1 + 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/crates/core/src/error.rs b/crates/core/src/error.rs index 6d34ae2ef..3d4e45306 100644 --- a/crates/core/src/error.rs +++ b/crates/core/src/error.rs @@ -27,7 +27,7 @@ pub enum ProtoError { #[diagnostic(code(proto::verify::missing_public_key))] #[error( - "A {} is required when using minisig.", "checksum_public_key".style(Style::Property) + "A {} is required to verify this tool.", "checksum_public_key".style(Style::Property) )] MissingChecksumPublicKey, diff --git a/plugins/Cargo.lock b/plugins/Cargo.lock index f8f7664c9..da22c5173 100644 --- a/plugins/Cargo.lock +++ b/plugins/Cargo.lock @@ -1763,6 +1763,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" +[[package]] +name = "minisign-verify" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881" + [[package]] name = "miniz_oxide" version = "0.7.1" @@ -2010,12 +2016,13 @@ dependencies = [ [[package]] name = "proto_core" -version = "0.19.2" +version = "0.19.3" dependencies = [ "cached", "extism", "human-sort", "miette", + "minisign-verify", "once_cell", "proto_pdk_api", "proto_wasm_plugin", @@ -2039,7 +2046,7 @@ dependencies = [ [[package]] name = "proto_pdk" -version = "0.7.7" +version = "0.7.8" dependencies = [ "anyhow", "extism-pdk", @@ -2051,7 +2058,7 @@ dependencies = [ [[package]] name = "proto_pdk_api" -version = "0.7.4" +version = "0.7.5" dependencies = [ "anyhow", "semver", @@ -2064,7 +2071,7 @@ dependencies = [ [[package]] name = "proto_pdk_test_utils" -version = "0.8.0" +version = "0.8.1" dependencies = [ "extism", "proto_core", diff --git a/plugins/wasm-test/src/lib.rs b/plugins/wasm-test/src/lib.rs index ff1ce7046..3b9dad41a 100644 --- a/plugins/wasm-test/src/lib.rs +++ b/plugins/wasm-test/src/lib.rs @@ -91,6 +91,7 @@ pub fn download_prebuilt( download_name: Some(filename), checksum_url: Some(format!("https://nodejs.org/dist/v{version}/SHASUMS256.txt")), checksum_name: None, + checksum_public_key: None, })) }