Giter Club home page Giter Club logo

Comments (2)

kolloch avatar kolloch commented on July 19, 2024

Maybe you can try to change the generated output slightly, especially the parameters from builtins.fetchGit? If you can make it work with that, please write about your changes here and I make it work with crate2nix.

Thank you!

from crate2nix.

andir avatar andir commented on July 19, 2024

In my case I only specified the branch on my Cargo.toml:

[dependencies.multicast_dns]
version = "0.4.2"
git = "https://github.com/andir/multicast-dns"
branch = "support-announce"

Which translated to the following entry in the lock file carrying the revision AND branch.

[[package]]
name = "multicast_dns"
version = "0.4.2"                                                          
source = "git+https://github.com/andir/multicast-dns?branch=support-announce#55d5ade735641a46ee4ce749698a35a6f29cd093"
dependencies = [
 "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
 "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
]

So the information seems to be retained. Passing ref (branch name/tag) to builtins.fetchGit should fix the above error. Does crate2nix have that kind of information or do we have to patch the cargo metadata feature?

from crate2nix.

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.