#Problem with dagger.json views exclude

1 messages · Page 1 of 1 (latest)

past ivy
#

I am trying to build a container with dagger. The upload of my local working dir takes a while, so I try to exclude not needed directories like node_modules. With 0.10.3 views were introduced. Something I am doing wrong...

However using this works:

"views": [
    {
      "name": "default",
      "patterns": ["!.vscode", "!dagger", "!**/node_modules", "!.env", "!README.md"]
    }
  ]

When trying to use dagger config views add -n my-view ./some/path ./some/other/path I get an error : Error: failed to get current include paths: input: moduleSource.withContextDirectory.view resolve: view "my-view" not found

tulip seal