From a3771f1d16951ff6b9a2b50a52eeec3c0c32a4e7 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sun, 3 Apr 2022 09:14:45 +0200 Subject: [PATCH] Add hint about how to get "anchor publish" to work to Cargo.toml Since anchor doesn't upload the full source tree but does not seem to rewrite the list of workspace members, "anchor publish" fails on the "cli" workspace member. --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c3baf14..9cb65bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,7 @@ [workspace] members = [ "programs/*", + # Drop everything below this line before running "anchor publish": + # Otherwise the build will fail since Anchor uploads only parts of the source tree. "cli/" ]