You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
main-broken: atlas-core label_migration.rs reads COUNT(*) as u64 — rusqlite 0.43 has no FromSql for u64 (blocks fleet-static build) #16845
Found by lane 0922-F (2026-11-29) while refreshing the fleet binary for #16577: nix build .#fleet-static at main 5cf40a1 fails compiling atlas-core:
error[E0277]: the trait bound `u64: FromSql` is not satisfied
--> pkgs/atlas-search/crates/atlas-core/src/label_migration.rs:125:64
125 | Ok((row.get::<_, Option<String>>(0)?, row.get::<_, u64>(1)?))
rusqlite 0.43 implements FromSql for i64 (and the smaller ints) but not u64. The value read is COUNT(*), a non-negative SQLite integer, so reading it as i64 and casting is exact.
Fix: read i64 in scan_labels and cast to u64. This unblocks the fleet-static build (and any other consumer building atlas-core against rusqlite 0.43).
Activity
Merge pull request #16848 from developing-today/archer/16845-label-mi…