Report error if FS is incorrectly handled on client filesystem read

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl
2022-04-01 13:00:41 -03:00
parent 66153c6194
commit 7ffbef33b5
4 changed files with 41 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
package main
import (
"dagger.io/dagger"
)
dagger.#Plan & {
// Reading a file into a dagger.#FS should not be possbile
client: filesystem: "../rootfs/test.txt": read: contents: dagger.#FS
actions: test: {
}
}