Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mod.dang
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,13 @@ type Mod {
let staging(target: Workspace!, outside: [String!]!): Workspace! {
if (hasEntrypointManifest) {
let loaded = sdkHelpers.moduleManifest(loadToml: ws.file("/" + manifestPath)).withoutEntrypoint
# A static entrypoint manifest holds no runtime to fall back on.
# A static entrypoint manifest holds no runtime, and the engine refuses a
# manifest with neither. Dang, not Python: the engine loads the added
# runtime eagerly, and only Dang's loads with no build.
let runnable = if (manifestConfig.fields.contains("runtime")) {
loaded
} else {
loaded.withLegacyPythonRuntime
loaded.withLegacyDangRuntime
}
# The build that renders the types reads the path sources outside the
# module directory, which the entrypoint's sources will return.
Expand Down