MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / check_no_committed_aot_artifacts

Function check_no_committed_aot_artifacts

xtask/src/main.rs:5787–5801  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5785}
5786
5787fn check_no_committed_aot_artifacts() -> Result<()> {
5788 let tracked = command_output("git", &["ls-files", "crates/aot"], Path::new("."))?;
5789 let committed_artifacts = tracked
5790 .lines()
5791 .filter(|path| path.contains("/artifacts/"))
5792 .collect::<Vec<_>>();
5793 if !committed_artifacts.is_empty() {
5794 bail!(
5795 "native AOT artifacts must be generated by CI and must not be committed:\n{}",
5796 committed_artifacts.join("\n")
5797 );
5798 }
5799 println!("committed repo contains no native AOT artifact blobs");
5800 Ok(())
5801}
5802
5803fn check_aot_crate_templates(sources: &SourcesManifest) -> Result<()> {
5804 let expected = supported_aot_targets();

Callers 1

verify_committed_assetsFunction · 0.85

Calls 1

command_outputFunction · 0.85

Tested by

no test coverage detected