Skip to content

Cannot build subscriptions example #89

@0xtmphey

Description

@0xtmphey

After cloning the repo, running anchor build in subscriptions folder gives the following error:

Failed to obtain package metadata: `cargo metadata` exited with an error: warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   ~/Projects/crypto/examples/subscriptions/programs/subscriptions/Cargo.toml
workspace: ~/Projects/crypto/examples/subscriptions/Cargo.toml
    Updating git repository `https://github.com/clockwork-xyz/anchor`
error: failed to load source for dependency `anchor-lang`

Caused by:
  Unable to update https://github.com/clockwork-xyz/anchor?branch=0.25.0-solana.1.13.4#27531b40

Caused by:
  object not found - no match for id (27531b40333fd55c9526a8efc0d0e08cb5673522); class=Odb (9); code=NotFound (-3)

I tried deleting Cargo.lock but then the build fails with different conflicts in dependency resolution.

Environment
rustc 1.69.0 (84c898d65 2023-04-16)
cargo 1.69.0 (6e9a83356 2023-04-12)
solana-cli 1.10.26 (src:1a0b783b; feat:1425680972)
anchor-cli 0.27.0
OS
macOS Ventura 13.2.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions