Hi, I get a failed to get paths from diff directory: select: lstat /tmp/buildkit-mount556458409/tmp: no such file or directory error when running the following function:
func (m *Mod) Foo(ctx context.Context) *dagger.Changeset {
ctr := dag.Container().From("alpine")
old := ctr.Directory("/tmp")
ctr = ctr.WithExec([]string{"ls"})
new := ctr.Directory("/tmp")
return new.Changes(old)
}
It works as expected if I do any of the following:
- Comment out the
WithExec()line, - Replace
lswithsh -c 'echo foo > /tmp/bar', - Replace
Changes()withDiff().
I am running Dagger v0.18.19 and calling the function with dagger call foo.
Not sure if it's a bug of if I'm missing something. Any idea?