sync: disableDownload -- Syncing files to / appears that devspace still processes index for entire container

What happened?
My containers workdir is /. I set containerPath: /. It appears the container may be copying all files in root to local computer. Trying to set disableDownload did not help. Initial sync never finishes.

I left sync running once for a while and finally got an out of memory error.

Setting downloadExcludePaths: ["/"] worked however.

Thanks @LukasGentele for all your help.

What did you expect to happen instead?
With disableDownload initial sync should happen quickly and syncing should begin. Entire container index should not be processed.

How can we reproduce the bug? (as minimally and precisely as possible)
Have image with workdir /. Try syncing files to the container. That should hopefully reproduce as that is what I have going on.

Local Environment:

  • DevSpace Version: [use devspace --version]: 5.2.2
  • Operating System: mac
  • Deployment method: kubectl apply

Kubernetes Cluster:

  • Cluster: minikube
  • Kubernetes Version: [use kubectl version]
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T18:49:28Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:32:58Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}

Anything else we need to know?

/kind bug