Skip to content

Commit d364d49

Browse files
author
Nichol Yip
committed
WIP: Properly convert UncheckedBuildSpec -> BuildSpec
Signed-off-by: Nichol Yip <[email protected]>
1 parent 72baa29 commit d364d49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/spk-schema/src/v0/spec.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,12 @@ where
10151015
.as_ref()
10161016
.ok_or_else(|| serde::de::Error::missing_field("pkg"))?;
10171017

1018+
if self.check_build_spec {
1019+
if let Some(build_spec) = self.build.as_ref() {
1020+
TryInto::<BuildSpec>::try_into(build_spec.item).map_err(serde::de::Error::custom)?;
1021+
}
1022+
}
1023+
10181024
Ok(self)
10191025
}
10201026
}

0 commit comments

Comments
 (0)