Summary
alimentar, trueno-rag, and simular have mod generated_contracts; in their lib.rs but src/generated_contracts.rs is in .gitignore (build artifact). No build.rs or mechanism generates this file in CI.
Error
error[E0583]: file not found for module `generated_contracts`
--> src/lib.rs:61:1
| mod generated_contracts;
Five-Whys
- Why fail? — rustc can't find
generated_contracts.rs
- Why missing? — It's a build artifact in .gitignore, not committed
- Why no build.rs? — The file is generated by provable-contracts integration tooling, which isn't available in the nightly CI environment
- Why isn't it available? — Nightly runs on GitHub-hosted runners without the provable-contracts repo or
pv tool
- Why wasn't this caught? — The
mod declaration was added (April 2) after nightly workflows were set up
Fix Options
- Commit a minimal stub
generated_contracts.rs to each repo
- Make
mod generated_contracts; conditional with #[cfg(feature = "contracts")]
- Add a
build.rs that generates a stub when the contracts aren't available
Affected: alimentar, trueno-rag, simular
Summary
alimentar, trueno-rag, and simular have
mod generated_contracts;in their lib.rs butsrc/generated_contracts.rsis in.gitignore(build artifact). No build.rs or mechanism generates this file in CI.Error
Five-Whys
generated_contracts.rspvtoolmoddeclaration was added (April 2) after nightly workflows were set upFix Options
generated_contracts.rsto each repomod generated_contracts;conditional with#[cfg(feature = "contracts")]build.rsthat generates a stub when the contracts aren't availableAffected: alimentar, trueno-rag, simular