Lets say I want to do something that should potentially mutate files on the host go fmt or delete files on the host go mod tidy && go mod vendor, but inside of a dagger function. How could I go about that? Is it even idiomatic?
I've tried to test this with this function:
func (m *Testing) Test(ctx context.Context, testdir *Directory) (bool, error) {
return testdir.WithoutFile("./test.txt").
Export(ctx, ".", DirectoryExportOpts{Wipe: true})
}
but the test.txt file still remains.