Skip to content

Commit 4949789

Browse files
migrate to Dagger 1.0
1 parent a47faad commit 4949789

8 files changed

Lines changed: 66 additions & 32 deletions

File tree

.dagger/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Dagger workspace configuration
2+
# Install modules with: dagger install <module>
3+
# Example:
4+
# dagger install github.com/dagger/dagger/modules/wolfi
5+
6+
[modules]

.dagger/migration-report.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Migration Report
2+
3+
## Root module requires explicit loading
4+
5+
The root `dagger.json` is still a valid module, but it must be loaded explicitly.
6+
7+
- **This works**: `dagger -m . call --help`
8+
- **This no longer works**: `dagger call --help`
9+
10+
ACTION: If your scripts rely on implicit loading of the root module, change them to use explicit loading.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[modules.vitest]
2+
source = "../../.."
3+
legacy-default-path = true
4+
# settings.baseImageAddress = ""
5+
# settings.packageManager = ""
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Migration Report
2+
3+
Dagger migrated `dagger.json`, but some old settings need a manual check.
4+
5+
ACTION: Review each item below. If your project still relies on it, add the setting back manually.
6+
7+
Legacy config: `dagger.json`
8+
9+
## 1. `vitest` needs a manual check
10+
11+
Dagger could not migrate this setting automatically: constructor arg "source" has 'defaultPath', which workspace settings do not support
12+
13+
Original setting:
14+
15+
```json
16+
{
17+
"argument": "source",
18+
"defaultPath": "/tests/hello_world_toolchain_local"
19+
}
20+
```

tests/hello_world_toolchain_local/dagger.json

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[modules.vitest]
2+
source = "../../.."
3+
legacy-default-path = true
4+
# settings.baseImageAddress = ""
5+
# settings.packageManager = ""
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Migration Report
2+
3+
Dagger migrated `dagger.json`, but some old settings need a manual check.
4+
5+
ACTION: Review each item below. If your project still relies on it, add the setting back manually.
6+
7+
Legacy config: `dagger.json`
8+
9+
## 1. `vitest` needs a manual check
10+
11+
Dagger could not migrate this setting automatically: constructor arg "source" has 'defaultPath', which workspace settings do not support
12+
13+
Original setting:
14+
15+
```json
16+
{
17+
"argument": "source",
18+
"defaultPath": "/tests/log_output_toolchain_local"
19+
}
20+
```

tests/log_output_toolchain_local/dagger.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)