From 6e357e1838d5a664858f0c07a9fed95f93453795 Mon Sep 17 00:00:00 2001 From: febo Date: Wed, 27 Nov 2024 17:14:28 +0000 Subject: [PATCH] Patch extra crates needed to unify build --- sdk/cargo-build-sbf/tests/crates/fail/Cargo.toml | 5 +++++ sdk/cargo-build-sbf/tests/crates/noop/Cargo.toml | 5 +++++ sdk/cargo-build-sbf/tests/crates/package-metadata/Cargo.toml | 5 +++++ .../tests/crates/workspace-metadata/Cargo.toml | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/sdk/cargo-build-sbf/tests/crates/fail/Cargo.toml b/sdk/cargo-build-sbf/tests/crates/fail/Cargo.toml index 671c1c5aac4feb..fd9af12f15747f 100644 --- a/sdk/cargo-build-sbf/tests/crates/fail/Cargo.toml +++ b/sdk/cargo-build-sbf/tests/crates/fail/Cargo.toml @@ -15,4 +15,9 @@ solana-program = { path = "../../../../program", version = "=2.2.0" } [lib] crate-type = ["cdylib"] +[patch.crates-io] +solana-decode-error = { path = "../../../../decode-error" } +solana-instruction = { path = "../../../../instruction" } +solana-pubkey = { path = "../../../../pubkey" } + [workspace] diff --git a/sdk/cargo-build-sbf/tests/crates/noop/Cargo.toml b/sdk/cargo-build-sbf/tests/crates/noop/Cargo.toml index b469dbd2f0fcff..9f1813b6381cfa 100644 --- a/sdk/cargo-build-sbf/tests/crates/noop/Cargo.toml +++ b/sdk/cargo-build-sbf/tests/crates/noop/Cargo.toml @@ -15,4 +15,9 @@ solana-program = { path = "../../../../program", version = "=2.2.0" } [lib] crate-type = ["cdylib"] +[patch.crates-io] +solana-decode-error = { path = "../../../../decode-error" } +solana-instruction = { path = "../../../../instruction" } +solana-pubkey = { path = "../../../../pubkey" } + [workspace] diff --git a/sdk/cargo-build-sbf/tests/crates/package-metadata/Cargo.toml b/sdk/cargo-build-sbf/tests/crates/package-metadata/Cargo.toml index 9bbc58b7f7e5ad..ad7f3fe921e896 100644 --- a/sdk/cargo-build-sbf/tests/crates/package-metadata/Cargo.toml +++ b/sdk/cargo-build-sbf/tests/crates/package-metadata/Cargo.toml @@ -20,4 +20,9 @@ solana-program = { path = "../../../../program", version = "=2.2.0" } [lib] crate-type = ["cdylib"] +[patch.crates-io] +solana-decode-error = { path = "../../../../decode-error" } +solana-instruction = { path = "../../../../instruction" } +solana-pubkey = { path = "../../../../pubkey" } + [workspace] diff --git a/sdk/cargo-build-sbf/tests/crates/workspace-metadata/Cargo.toml b/sdk/cargo-build-sbf/tests/crates/workspace-metadata/Cargo.toml index 83b467a1259bb1..9f6a8c2896431b 100644 --- a/sdk/cargo-build-sbf/tests/crates/workspace-metadata/Cargo.toml +++ b/sdk/cargo-build-sbf/tests/crates/workspace-metadata/Cargo.toml @@ -15,6 +15,11 @@ solana-program = { path = "../../../../program", version = "=2.2.0" } [lib] crate-type = ["cdylib"] +[patch.crates-io] +solana-decode-error = { path = "../../../../decode-error" } +solana-instruction = { path = "../../../../instruction" } +solana-pubkey = { path = "../../../../pubkey" } + [workspace] [workspace.metadata.solana]