Giter Site home page Giter Site logo

Comments (5)

NobodyXu avatar NobodyXu commented on May 24, 2024

You need to run:

mkdir -p $HOME/.cargo/bin

cargo-binstall would fail if that path does not exist.

Regarding to path cargo-binstalleMdRRS or cargo-binstallIwSQUG, that is not an error.
It is a temporary directory created using tempfile to store the bins.

from cargo-binstall.

NobodyXu avatar NobodyXu commented on May 24, 2024

@passcod Would it be a good idea to std::fs::create_dir_all that path in cargo-binstall?

from cargo-binstall.

nabijaczleweli avatar nabijaczleweli commented on May 24, 2024

I created that directory (even though that's a valid configuration, cargo install doesn't create that directory until it successfully installs something), then I got

c-i-t@tarta:~$ ./cargo-binstall
Do you wish to continue? yes/[no]
? yes
15:52:00 [ERROR] Fatal error:

  × missing field `v1`

This is very good because (a) it doesn't even say where the error is, (b) cargo-binstall literally O_CREAT|O_EXCLs .crates.toml, and (c) cargo install creates it on first use in a similar fashion, equally empty, so this is a valid configuration.

Only after also echo '[v1]' > .cargo/.crates.tomling did cargo-binstall successfully do nothing.

from cargo-binstall.

NobodyXu avatar NobodyXu commented on May 24, 2024

Thanks for spotting this error, this is definitely a bug in cargo-binstall and I will investigate into this.

from cargo-binstall.

NobodyXu avatar NobodyXu commented on May 24, 2024

It should be relatively easy to fix both of them.
I will submit a PR to fix them tomorrow.

from cargo-binstall.

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.