-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Hi. I'm trying to build the helium programs, and I am stuck at bringing up the localnet.
Finished release [optimized] target(s) in 10.66s
Error: Error reading manifest from path: /home/app/Git/helium-program-library/programs/lazy-distributor/Cargo.toml
Caused by:
This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet
The problem is that lazy-distributor doesn't compile. The error is cryptic, there's a similar issue for nixops but the solution there is to stop using workspace inheritance, hardly something that can be done here.
If anyone else has experienced this problem, can they at least share the workaround.
Details
helium-program-library on master [!] via v21.7.3 via 🦀 v1.77.2 took 7s
❯ anchor build
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/circuit-breaker/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/utils/shared-utils/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/data-credits/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/helium-sub-daos/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/treasury-management/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/voter-stake-registry/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/lazy-transactions/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/fanout/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/helium-entity-manager/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/no-emit/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/hexboosting/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/mobile-entity-manager/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/app/Git/helium-program-library/programs/lazy-distributor/Cargo.toml
workspace: /home/app/Git/helium-program-library/Cargo.toml
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17hf749303b6061547bE Stack offset of 4584 exceeded max offset of 4096 by 488 bytes, please minimize large stack variables
Compiling shared-utils v0.0.1 (/home/app/Git/helium-program-library/utils/shared-utils)
Compiling circuit-breaker v0.1.0 (/home/app/Git/helium-program-library/programs/circuit-breaker)
warning: ambiguous glob re-exports
--> programs/circuit-breaker/src/instructions/mod.rs:8:9
|
8 | pub use initialize_account_windowed_breaker_v0::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here
...
13 | pub use update_mint_windowed_breaker_v0::*;
| ---------------------------------- but the name `handler` in the value namespace is also re-exported here
|
= note: `#[warn(ambiguous_glob_reexports)]` on by default
warning: circuit-breaker (lib) generated 1 warning
Compiling lazy-distributor v0.1.0 (/home/app/Git/helium-program-library/programs/lazy-distributor)
warning: ambiguous glob re-exports
--> programs/lazy-distributor/src/instructions/distribute/mod.rs:5:9
|
5 | pub use distribute_compression_rewards_v0::;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name handler in the value namespace is first re-exported here
6 | pub use distribute_rewards_v0::;
| ------------------------ but the name handler in the value namespace is also re-exported here
|
= note: #[warn(ambiguous_glob_reexports)] on by default
warning: ambiguous glob re-exports
--> programs/lazy-distributor/src/instructions/mod.rs:8:9
|
8 | pub use distribute::;
| ^^^^^^^^^^^^^ the name handler in the value namespace is first re-exported here
...
13 | pub use update_lazy_distributor_v0::;
| ----------------------------- but the name handler in the value namespace is also re-exported here
warning: lazy-distributor (lib) generated 2 warnings
Finished release [optimized] target(s) in 10.66s
Error: Error reading manifest from path: /home/app/Git/helium-program-library/programs/lazy-distributor/Cargo.toml
Caused by:
This manifest requires workspace inheritance, but inherit_workspace hasn't been called yet