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

Function source_checkout_path

xtask/src/main.rs:5190–5206  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

5188}
5189
5190fn source_checkout_path(name: &str) -> Option<&'static Path> {
5191 match name {
5192 POSTGRES_PGLITE_SOURCE => Some(Path::new(POSTGRES_PGLITE_PATH)),
5193 PGLITE_BUILD_SOURCE => Some(Path::new(PGLITE_BUILD_PATH)),
5194 "pglite" => Some(Path::new("assets/checkouts/pglite")),
5195 "pgvector" => Some(Path::new(PGVECTOR_BUILD_DIR)),
5196 "pgtap" => Some(Path::new("assets/checkouts/pgtap")),
5197 "pg_ivm" => Some(Path::new("assets/checkouts/pg_ivm")),
5198 "pg_uuidv7" => Some(Path::new("assets/checkouts/pg_uuidv7")),
5199 "pg_hashids" => Some(Path::new("assets/checkouts/pg_hashids")),
5200 "age" => Some(Path::new("assets/checkouts/age")),
5201 "pg_textsearch" => Some(Path::new("assets/checkouts/pg_textsearch")),
5202 "postgis" => Some(Path::new("assets/checkouts/postgis")),
5203 "pglite-bindings" => Some(Path::new("assets/checkouts/pglite-bindings")),
5204 _ => None,
5205 }
5206}
5207
5208fn ensure_clean_checkout(source: &SourcePin, path: &Path) -> Result<()> {
5209 if !path.exists() {

Callers 2

fetch_pinned_sourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected