Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to select a version for the requirement platforms = "^0.2.1" #439

Open
2 tasks done
HamzaYasin1 opened this issue Aug 15, 2022 · 0 comments
Open
2 tasks done

Comments

@HamzaYasin1
Copy link

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Hi Folks,
I'm using substrate 2.0.0 as of baseline code, it was working fine a week ago but than it started giving this issue:

          error: failed to run custom build command for `node-template-runtime v2.0.0               
          Caused by:
            process didn't exit successfully: `/Users/dev/Applications/Documents/blockchain/substrate-frame-pallets- 
           modules/target/debug/build/node-template-runtime-aa7158538ef102e9/build-script-build` (exit code: 1)
            --- stderr
                Updating crates.io index
            error: failed to download `serde v1.0.143`
          
            Caused by:
              unable to get packages from source
          
            Caused by:
              failed to parse manifest at `/Users/dev/Applications/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-
             1.0.143/Cargo.toml`
          
            Caused by:
              feature `resolver` is required
          
              consider adding `cargo-features = ["resolver"]` to the manifest

I searched this issue and i found that its open on serde.rs2255
i did many things, like updating or downgrading toolchain, but when i removed the lock file and deleted the targets so this started giving below error. i couldn't see any platforms dependency in cargo tree in my project.

      error: failed to select a version for the requirement `platforms = "^0.2.1"`
            candidate versions found which didn't match: 3.0.1, 3.0.0, 2.0.0, ...
            location searched: crates.io index
            required by package `substrate-build-script-utils v2.0.0`
                ... which is depended on by `my-chain v2.0.0 

Steps to reproduce

  • Using substrate 2.0.0
  • cargo +nightly-2020-10-05 build
@bkchr bkchr transferred this issue from paritytech/substrate Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant