-
Notifications
You must be signed in to change notification settings - Fork 127
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
error: couldn't fetch advisory database: git operation failed: reference 'refs/heads/master' not found; class=Reference (4); code=NotFound (-3) #32
Comments
Can you reproduce this error? You can try |
Yeah, happened every time. I ran So I looked at
So then I did a Now |
Sounds like the repository got into a bad state somehow. Looking at the similar Cargo code for managing the repositories it does quite a bit to clean up repositories in bad states, so it seems there is some work to do in that regard. Glad recloning fixed your problems otherwise though. I'll try to add some error handling and cleanup logic to the repository fetcher and hopefully that will address the issue in the future. One other question though: did this happen the first time you ran cargo audit, or did it work OK the first time and fail on a follow-up run? |
I think I had the problem the first time I ran it. |
I notice this happens if |
@paul-tcell interesting! I'll try making a test case for that and see if I can reproduce it |
@tarcieri What work needs to be done? I might be able to take a look. |
@colindean a test needs to be added for these cases which captures this bug and the one in #45 (which both seem like two symptoms of the same root cause). After that, I feel like a |
This should be fixed by https://github.com/RustSec/rustsec-crate/pull/47, which was released as |
Thank you! |
How do i install v0.9.2 alone? By default i can get only v0.13.1 version. Can you please help. I am having same problem |
cargo audit -D /tmp/tmp-advisory-db command not working for me |
I just hit this issue this morning:
I poked a few things with little luck. Then
|
README.md: Badge fixups, add gitter badge
Extracted from the `serde_derive`-generated `Serialize` impl. We use this rather than the upstream one to allow for format detection.
(Re-)Add Serialize impl for Lockfile (fixes #32)
Add aarch64-apple-darwin to Platform list
I just installed cargo audit:
But running it fails with "git operation failed":
I tried cloning directly via
git clone https://github.com/RustSec/advisory-db.git
and that works, so not sure what the problem is.The text was updated successfully, but these errors were encountered: