-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmod-deps.dang
More file actions
43 lines (38 loc) · 1.05 KB
/
mod-deps.dang
File metadata and controls
43 lines (38 loc) · 1.05 KB
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
"""
Dagger dependencies for a Go SDK module.
"""
type ModDeps {
"""
Workspace-relative path of the module root.
"""
let path: String!
"""
Workspace containing this module.
"""
let ws: Workspace!
"""
Return dependency names when present, otherwise dependency sources.
"""
pub list: [String!]! {
polyfill.workspace(ws).moduleSource(path).config.dependencies
}
"""
Add a Dagger dependency to dagger.json.
"""
pub add(source: String!, name: String! = ""): Changeset! {
polyfill.workspace(ws).moduleSource(path).config.withDependency(source, name).fork.changes
}
"""
Remove a Dagger dependency from dagger.json by name or source.
"""
pub remove(name: String!): Changeset! {
polyfill.workspace(ws).moduleSource(path).config.withoutDependency(name).fork.changes
}
"""
Update one dependency by name or source, or update all remote dependencies in
dagger.json.
"""
pub update(name: String! = ""): Changeset! {
polyfill.workspace(ws).moduleSource(path).config.withUpdatedDependencies(name).fork.changes
}
}