-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bug prevents from using dependency #11638
Comments
Does this error happen repeatedly, or was it a one-time thing? |
Consistent, every time when building this package.
Owned by me, and with all the correct permissions.
I'm wondering what that even means, and what is Cargo supposed to do when it finds an existing
|
I don't have any issues with that project. The fn main() {
let path = std::path::Path::new("/Users/ur20980/.cargo/registry/src/github.com-1ecc6299db9ec823/aho-corasick-0.5.3/.cargo-ok");
match path.metadata() {
Ok(meta) => println!("{}", meta.len()),
Err(e) => println!("{e:?}"),
}
} You can just save that to a file |
Hmm... Weird... Does it run for you? Or only builds? For me to get that project to the point where it builds, I had to nuke all the For your test-program - is this what you expected?
P.S. As I'm a Rust novice - perhaps you could advise what to replace
Basically, the error is caught here 41 │ fn main() {
42 │ let args: Args = Docopt::new(USAGE)
43 │ .and_then(|d| d.decode())
44 │ .unwrap_or_else(|e| e.exit());
45 │
46 │ let prefix = args.flag_prefix.unwrap_or("trpl".to_owned());
47 │ let source = args.flag_source.unwrap_or("trpl".to_owned());
48 │ let meta = args.flag_meta.unwrap_or("trpl_meta.yml".to_owned());
49 │
50 │ convert_book::render_book(&prefix, &Path::new(&source), &meta).unwrap();
51 │
52 │ let index = convert_book::index::render_index("dist/").unwrap();
53 │ helpers::file::write_string_to_file(&index, "dist/index.html").unwrap();
54 │ println!("[✓] {}", "Index"); I'd love to get something more useful/informative than "file does not exist". At least, what file doesn't exist - would you know, by any chance, where/how to extract that info? Thanks! |
I see a particular issue with the error handling for the As for getting better error messages, you'll need to add error handling. Unfortunately we can't provide support here. I suggest trying one of the user forums such as https://users.rust-lang.org/. |
Problem
Steps
cargo build
on https://github.com/killercup/trpl-ebook.gitPossible Solution(s)
No idea. But it should either accept and use the already-installed package as-is, or re-download and re-build it a-fresh if needed. Just aborting here does not make any sense.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: