MCPcopy Create free account
hub / github.com/Aromatic05/we-layerd / ensure_recursive_submodules

Function ensure_recursive_submodules

build.rs:131–142  ·  view source on GitHub ↗
(upstream_root: &Path)

Source from the content-addressed store, hash-verified

129 panic!("failed to {}: {}", description, status);
130 }
131}
132
133fn reset_cmake_cache_if_source_changed(
134 build_root: &Path,
135 upstream_root: &Path,
136) -> std::io::Result<()> {
137 let cache_path = build_root.join("CMakeCache.txt");
138 if !cache_path.exists() {
139 return Ok(());
140 }
141
142 let cache = fs::read_to_string(&cache_path)?;
143 let expected = upstream_root.display().to_string();
144 let has_expected_source = cache
145 .lines()

Callers 1

mainFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected