Comments (5)
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.
@passcod Would it be a good idea to std::fs::create_dir_all
that path in cargo-binstall?
from cargo-binstall.
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.toml
ing did cargo-binstall successfully do nothing.
from cargo-binstall.
Thanks for spotting this error, this is definitely a bug in cargo-binstall and I will investigate into this.
from cargo-binstall.
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)
- Signing: support GPG
- Signing: support sigstore
- Signing: support SSH
- feature: Re-land the support for custom linux distro in `detect-targets`
- Linux: not working with wired? connection HOT 1
- Enable dry run only for cli release PRs HOT 1
- resolve log is too verbose HOT 2
- musl target change HOT 11
- Unnecessary warning about lack of `~/.git-credentials` HOT 3
- Question about the template macro HOT 2
- Consider adding -Zcross-crate-inline-threshold=always HOT 3
- Add cargo-run-bin to readme HOT 6
- cargo-binstall doesn't work behind corporate firewall HOT 3
- How to use binstall to download bin in *musl.tar.gz release package? HOT 7
- Please add support for scoop install in win10 HOT 4
- How to list installed binary? HOT 3
- Upgrade to hyper 1.0 once reqwest completed the upgrade HOT 1
- where is the cached downloaded file? HOT 1
- How to download bin with get/put but not git-api-token ? HOT 1
- How to skip fatal error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-binstall.