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

Fresh install on macos fails #1134

Open
andrewdavidmackenzie opened this issue Mar 4, 2024 · 2 comments
Open

Fresh install on macos fails #1134

andrewdavidmackenzie opened this issue Mar 4, 2024 · 2 comments

Comments

@andrewdavidmackenzie
Copy link

I just installed (using cargo install) on macos 14, rustc 1.78 nightly and get this error:

 cargo audit
    Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
error: error loading advisory database: parse error: error parsing /Users/andrew/.cargo/advisory-db/crates/string-interner/RUSTSEC-2019-0023.toml: parse error: unexpected start of advisory: "[advisory]

User (me) problem or a bug?

uname -a
Darwin MacBook-Pro 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64 x86_64
 cargo --version
cargo 1.78.0-nightly (194a60b29 2024-02-21)
@Shnatsel
Copy link
Member

Shnatsel commented Mar 4, 2024

Hm, I just did a fresh install on Linux and it works for me.

Could you rename /Users/andrew/.cargo/advisory-db/ to advisory-db.broken and try again?

It would be also interesting to get an archive with the database to see what went wrong with the checkout.

@andrewdavidmackenzie
Copy link
Author

That worked.

I have the old directory here. You want all of it in a tarball/zip or just some specific file?

In the process I noticed a file in .cargo/ called advisory-db..locked NOTE the double .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants