I have my dagger plans in a directory called "ci". I want to be able to access files in the parent directory (project root):
$ tree .
.
├── a.txt
├── b.txt
└── ci
├── go.mod
├── go.sum
└── main.go
I'm trying something like this:
src := client.Host().Directory("..")
ubuntu := client.Container().From("ubuntu").
WithMountedDirectory("/work", src).
WithWorkdir("/work").
WithExec([]string{"ls"})
But this gives the following:
panic: input:1: host.directory path ".." escapes workdir; use an absolute path instead
Any hints?