From 6ce555a97b5809dfb406339b08682e42c9f47420 Mon Sep 17 00:00:00 2001 From: Zack Maril Date: Tue, 25 Aug 2026 21:27:00 +0000 Subject: [PATCH] Say the mkdir the regeneration command needs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The catalog is not committed and git does not track an empty directory, so `infact-packs/rust-std/api/` is absent on a fresh checkout — and `--output` does not create the path it is given. The documented command therefore failed on the one machine state it exists for, with a bare `No such file or directory` that names neither the path nor the reason. Found by running it on a fresh checkout of merged main rather than by reading it. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_017ghYbUJFcVfkKYacbTVJsR --- infact-packs/rust-std/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infact-packs/rust-std/README.md b/infact-packs/rust-std/README.md index 175320a..1bd3c7a 100644 --- a/infact-packs/rust-std/README.md +++ b/infact-packs/rust-std/README.md @@ -7,10 +7,16 @@ that ships as a rustup component rather than from a checkout of the compiler: rustup component add rust-docs-json --toolchain nightly J=$(rustc +nightly --print sysroot)/share/doc/rust/json V=$(rustc +nightly --version | awk '{print $2}') +mkdir -p infact-packs/rust-std/api infact catalog "$J/core.json" --package core --version "$V" \ --output "infact-packs/rust-std/api/core-$V.json" ``` +The `mkdir` is not decoration. The catalog is not committed, git does not track +an empty directory, and `--output` does not create the path it is given — so on +a fresh checkout `api/` does not exist and the command fails with a bare +`No such file or directory`. + `alloc.json` and `std.json` build the same way and are not kept here, because nothing yet matches against anything they add. Regenerating one takes two seconds; carrying it does not.