Title: fix(fleet): nix build fails — atlas-search/schema missing from fleetSrc fileset (atlas-core include_str! .sql files absent) · Issue #7641 · developing-today/code · GitHub
Open Graph Title: fix(fleet): nix build fails — atlas-search/schema missing from fleetSrc fileset (atlas-core include_str! .sql files absent) · Issue #7641 · developing-today/code
X Title: fix(fleet): nix build fails — atlas-search/schema missing from fleetSrc fileset (atlas-core include_str! .sql files absent) · Issue #7641 · developing-today/code
Description: Problem nix build .#fleet (and therefore nix build .#nixosConfigurations.amd.config.system.build.toplevel, which includes the fleet package) fails on current main (df0e415c91, verified 2026-11-08 in a clean worktree by task 13007): error...
Open Graph Description: Problem nix build .#fleet (and therefore nix build .#nixosConfigurations.amd.config.system.build.toplevel, which includes the fleet package) fails on current main (df0e415c91, verified 2026-11-08 i...
X Description: Problem nix build .#fleet (and therefore nix build .#nixosConfigurations.amd.config.system.build.toplevel, which includes the fleet package) fails on current main (df0e415c91, verified 2026-11-08 i...
Opengraph URL: https://github.com/developing-today/code/issues/7641
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(fleet): nix build fails — atlas-search/schema missing from fleetSrc fileset (atlas-core include_str! .sql files absent)","articleBody":"## Problem\n\n`nix build .#fleet` (and therefore `nix build .#nixosConfigurations.amd.config.system.build.toplevel`, which includes the fleet package) fails on current main (`df0e415c91`, verified 2026-11-08 in a clean worktree by task 13007):\n\n```\nerror: couldn't read `/build/source/atlas-search/crates/atlas-core/src/../../../schema/atlas_stage_v1.sql`: No such file or directory (os error 2)\nerror: couldn't read `/build/source/atlas-search/crates/atlas-core/src/../../../schema/stage_registry_v1.sql`: No such file or directory (os error 2)\nerror: could not compile `atlas-core` (lib) due to 2 previous errors\nerror: Cannot build '...-fleet-0.1.0.drv': builder failed with exit code 101\n```\n\n## Root cause\n\n- `pkgs/atlas-search/crates/atlas-core/src/stage.rs:45` does `include_str!(\"../../../schema/atlas_stage_v1.sql\")` and line 49 does the same for `stage_registry_v1.sql`. Both files exist at `pkgs/atlas-search/schema/`.\n- `pkgs/fleet/default.nix` builds the fleet binary from a `lib.fileset.toSource` union (`fleetSrc`) containing only `pkgs/fleet`, `../atlas-search/Cargo.toml`, and `../atlas-search/crates` — `../atlas-search/schema` is NOT in the fileset, so the `.sql` files are absent from the Nix build source. Local cargo builds from the full tree pass; only the Nix build fails.\n\n## Fix\n\nAdd `../atlas-search/schema` to the `fleetSrc` fileset union in `pkgs/fleet/default.nix`.\n\n## Acceptance\n\n- `nix build .#fleet` succeeds on main.\n- `nix build .#nixosConfigurations.amd.config.system.build.toplevel` gets past the fleet-0.1.0 dependency (green, or any remaining failure is a different, separately filed defect).\n- Found by: task 13007 (#2727 verification) — the toplevel failure is pre-existing on clean main and unrelated to #2727 (its nodejs_24 build passes).\n\n## Acceptance criteria\n- nix build .#fleet succeeds on current main (and the toplevel build that includes the fleet package gets past the atlas-core compile).\n- The fleetSrc fileset in pkgs/fleet/default.nix includes pkgs/atlas-search/schema, so both include_str! .sql files are present in the build source.\n- No other include_str! path in the fleet build's dependency set is missing from the fileset (checked, not assumed).\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-08T10:41:11Z","url":"https://github.com/developing-today/code/issues/7641"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9c4358be-b7bf-bf06-5928-85014257152c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C304:26E336:21FB25F:2F50D98:6B06F958 |
| html-safe-nonce | 505344b62a4c178aa7a4d047b48db16406c39eed09cb9a8fd7b43e5c40d90e07 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzA0OjI2RTMzNjoyMUZCMjVGOjJGNTBEOTg6NkIwNkY5NTgiLCJ2aXNpdG9yX2lkIjoiODcxNDk1NTQxODEzMDM4MTE0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe1e6cc196cb284b0754a75a9f4d474f705ad7e12f1b4db7358fbe1274ced64b |
| hovercard-subject-tag | issue:6270082724 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7641/issue_layout |
| twitter:image | https://opengraph.githubassets.com/304d2d2c83fc25026bf2a5616a25a0b38952dead66ae41d5a3eb737b02630aef/developing-today/code/issues/7641 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/304d2d2c83fc25026bf2a5616a25a0b38952dead66ae41d5a3eb737b02630aef/developing-today/code/issues/7641 |
| og:image:alt | Problem nix build .#fleet (and therefore nix build .#nixosConfigurations.amd.config.system.build.toplevel, which includes the fleet package) fails on current main (df0e415c91, verified 2026-11-08 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | developing-today[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 518c89df9981b23ef4bf1cf9e25792a20e5884aa6a2efccd817801f8bae3dd64 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3e66657d0989666cd38e3fb0fbd4e0c116e481e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width