-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmod-engine.dang
More file actions
46 lines (40 loc) · 1019 Bytes
/
mod-engine.dang
File metadata and controls
46 lines (40 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
Required Dagger engine version for a Python SDK module.
"""
type ModEngine {
"""
Workspace-relative path of the module root.
"""
let path: String!
"""
The workspace this module belongs to.
"""
let ws: Workspace!
"""
The Dagger engine version required by this module, without a leading "v".
"""
pub required: String! {
config.requiredEngineVersion
}
"""
Configure this module to require the given Dagger engine version.
"""
pub require(version: String!): Changeset! {
config.withRequiredEngineVersion(version).fork.changes
}
"""
Configure this module to require the current Dagger engine version.
"""
pub requireCurrent: Changeset! {
config.withCurrentEngineVersion.fork.changes
}
"""
Configure this module to require the latest stable Dagger engine version.
"""
pub requireLatest: Changeset! {
config.withLatestEngineVersion.fork.changes
}
let config: PolyfillModuleConfig! {
polyfill.workspace(ws).moduleSource(path).config
}
}