diff --git a/backend/src/s9pk/reader.rs b/backend/src/s9pk/reader.rs index eefc4ae63..fe6bb7b42 100644 --- a/backend/src/s9pk/reader.rs +++ b/backend/src/s9pk/reader.rs @@ -231,6 +231,16 @@ impl S9pkReader { &validated_image_ids, )?; + #[cfg(feature = "js_engine")] + if man.containers.is_some() + || matches!(man.main, crate::procedure::PackageProcedure::Script(_)) + { + return Err(Error::new( + eyre!("Right now we don't support the containers and the long running main"), + crate::ErrorKind::ValidateS9pk, + )); + } + if man.containers.is_some() && matches!(man.main, crate::procedure::PackageProcedure::Docker(_)) {