Fix entrypoint compilation with check->run
@@ -260,12 +260,6 @@ where
io.mkdir(&build_dir)?;
- if self.write_entrypoint {
- self.render_erlang_entrypoint_module(&build_dir, &mut written)?;
- } else {
- tracing::info!("skipping_entrypoint_generation");
- }
-
if self.copy_native_files {
self.copy_project_native_files(&build_dir, &mut written)?;
} else {
@@ -280,6 +274,12 @@ where
)?;
}
+ if self.compile_beam_bytecode && self.write_entrypoint {
+ self.render_erlang_entrypoint_module(&build_dir, &mut written)?;
+ } else {
+ tracing::info!("skipping_entrypoint_generation");
+ }
+
// NOTE: This must come after `copy_project_native_files` to ensure that
// we overwrite any precompiled Erlang that was included in the Hex
// package. Otherwise we will build the potentially outdated precompiled
