errors on missing packages suggests project update

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2022-03-10 17:09:21 -07:00
parent 3e702626a4
commit 770be271f1
3 changed files with 18 additions and 2 deletions

View File

@@ -46,6 +46,11 @@ setup() {
assert_output --partial "attempting to load a dagger 0.1.0 project."
}
@test "plan/do: missing packages suggests project update" {
run "$DAGGER" "do" -p ./plan/do/missing_dependencies.cue test
assert_output --partial ": running \`dagger project update\` may resolve this"
}
@test "plan/hello" {
# Europa loader handles the cwd differently, therefore we need to CD into the tree at or below the parent of cue.mod
cd "$TESTDIR"

View File

@@ -0,0 +1,7 @@
package main
import (
"dagger.io/daggggger" // intentionally misspelled to force error message
)
dagger.#Plan