#What does `exclude` in dagger.json do?

1 messages · Page 1 of 1 (latest)

silent moon
#

In many modules I can see an exclude key being specified in dagger.json files.
For instance:

I have not been able to find exactly what this does. Any pointers?

Thanks!

GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.

GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.

late ermine
#

It tells the engine which files to exclude when loading the module itself

#

Particularly useful during local module development, to avoid uploading large cache or generated files that the engine doesn't need

#

Notably, it only applies to loading the module. It does not apply to any directories passed as arguments to your module's functions

silent moon
#

Understood, thank you very much!