Skip to content

Commit 3be77cc

Browse files
committed
graph: allow subgraphs with prune set to never to be sourcable
1 parent 308f4b2 commit 3be77cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graph/src/data_source/subgraph.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ impl UnresolvedDataSource {
358358

359359
let pruning_enabled = match source_manifest.indexer_hints.as_ref() {
360360
None => false,
361-
Some(hints) => hints.prune.is_some(),
361+
Some(hints) => match hints.prune.as_ref() {
362+
None => false,
363+
Some(prune) => !matches!(prune, crate::data::subgraph::Prune::Never),
364+
},
362365
};
363366

364367
if pruning_enabled {

0 commit comments

Comments
 (0)