Coder Social home page Coder Social logo

Comments (3)

bytedream avatar bytedream commented on June 23, 2024

@stepbrobd any idea why this fails?
If I'm correct this failure exists since dc6bc0d. Beginning with this commit the native-tls crate got replaced by a fork of it. If I remove the line which overwrites the crate with the fork, the error disappears.

from crunchy-cli.

stepbrobd avatar stepbrobd commented on June 23, 2024

If I'm correct this failure exists since dc6bc0d. Beginning with this commit the native-tls crate got replaced by a fork of it. If I remove the line which overwrites the crate with the fork, the error disappears.

Good catch! The line you mentioned resulted in two `native-tls` entries present in `Cargo.lock`, this is not supported by `buildRustPackage`.
 [[package]]
 name = "native-tls"
 version = "0.2.11"
 source = "git+https://github.com/crunchy-labs/rust-not-so-native-tls.git?rev=570100d#570100d3391bd9aab7a390cfef0d1a28e8efe200"
 ...
 [[package]]
 name = "native-tls"
 version = "0.2.11"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 ...

There are couple ways to solve this:

  1. Removing native-tls fork from dependencies, or
  2. Writing patch to remove duplicate entries in the Cargo.lock file, or
  3. Try using a community maintained toolchain, they might support duplicate entries in Cargo.lock (haven't tested this yet, will look into it).

Related:

from crunchy-cli.

bytedream avatar bytedream commented on June 23, 2024

I removed duplicated entry from Cargo.lock / now only rely on the [patch.crates-io] section in Cargo.toml.
@lachydavies25 you should be able to run it via nix now.

from crunchy-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.