You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we use DABs to deploy Scala-based project that only needs its JAR artifact to run. So we do not need any files to sync to Databricks workspace. However, when we exclude all files from sync via
sync:
exclude:
- "*"
we get Warning: There are no files to sync, please check your .gitignore and sync.exclude configuration when validating the bundle. This forces us to add some random file so that validation succeeds.
As I understand, it is a common need to sync some files. But it would be great if there was a way to tell the DABs that I really do not want to sync anything and it is intentional. What comes to mind is an ability to silence this warning so that sync does not become more complicated than it is.
Thank you for considering this!
The text was updated successfully, but these errors were encountered:
There is a somewhat related change in progress to enable specifying the paths to synchronize (as opposed to always defaulting to . relative to the bundle root directory). This field can also be set to nil or an empty sequence (example) and it will have the same outcome as what you're looking for.
Happy to see the mentioned change to specifying paths, but:
We have the same use case as @svatopluk-sperka, but with these sync settings from your example:
sync:
paths: []
I'm still getting the message (with Databricks CLI 0.227.0): Warning: There are no files to sync, please check your .gitignore
We're deploying an artifact wheel, so this is a bit confusing for our developers.
Hi Databricks,
we use DABs to deploy Scala-based project that only needs its JAR artifact to run. So we do not need any files to sync to Databricks workspace. However, when we exclude all files from sync via
we get
Warning: There are no files to sync, please check your .gitignore and sync.exclude configuration
when validating the bundle. This forces us to add some random file so that validation succeeds.As I understand, it is a common need to sync some files. But it would be great if there was a way to tell the DABs that I really do not want to sync anything and it is intentional. What comes to mind is an ability to silence this warning so that
sync
does not become more complicated than it is.Thank you for considering this!
The text was updated successfully, but these errors were encountered: