Copy the docs the binary embeds into the build stage - #28
Merged
Merged
Conversation
docs_corpus.rs pulls web/src/docs/ingest.md in with include_str!, which makes it a source dependency of the backend rather than a frontend asset. The Rust stage copied Cargo manifests, crates/ and migrations/ — never web/ — so cargo stopped at "couldn't read .../web/src/docs/ingest.md". This has been broken since the search_docs tool landed. Nothing built a container anywhere, so the one path the README tells every reader to take was the only path never exercised. Checked the rest: one include_str! in the tree, no build.rs.
WaylandYang
added a commit
that referenced
this pull request
Aug 28, 2026
docs_corpus.rs pulls web/src/docs/ingest.md in with include_str!, which makes it a source dependency of the backend rather than a frontend asset. The Rust stage copied Cargo manifests, crates/ and migrations/ — never web/ — so cargo stopped at "couldn't read .../web/src/docs/ingest.md". This has been broken since the search_docs tool landed. Nothing built a container anywhere, so the one path the README tells every reader to take was the only path never exercised. Checked the rest: one include_str! in the tree, no build.rs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs_corpus.rsembedsweb/src/docs/ingest.mdwithinclude_str!, which makes that file a source dependency of the backend, not a frontend asset. The Rust stage copiedCargo.toml,Cargo.lock,crates/andmigrations/— never anything underweb/— so the compile failed outright.This has been broken since the
search_docstool landed. Nothing in CI built a container, so the single path the README hands every reader was also the only path never exercised. Adding the release workflow is what surfaced it.Swept for siblings: exactly one
include_str!in the tree, noinclude_bytes!, nobuild.rs, and.dockerignoreexcludes onlyweb/dist/, soweb/src/docs/reaches the context.