devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Files not deleted using mirrorLocal inital sync

Open kickthemooon opened this issue 4 years ago • 1 comments

What happened? Using mirrorLocal (default) initial sync, files, which are locally non-existent, were not deleted from remote because that directory was specified in the downloadExcludePaths.

What did you expect to happen instead? That, if mirrorLocal is used, those files will be deleted because they are not specified in the list of uploadExcludePaths

How can we reproduce the bug? (as minimally and precisely as possible) use mirrorLocal initial sync strategy have a directory on remote as well as locally present have a file in that directory on remote which is not present locally add the directory path to downloadExcludePaths start devspace sync

Local Environment:

  • DevSpace Version: latest
  • Operating System: mac

Kubernetes Cluster:

  • Cloud Provider: aws
  • Kubernetes Version: 14

Anything else we need to know? After I remove the directory from downloadExcludePaths the files get deleted which are not present locally

/kind bug

kickthemooon avatar Aug 20 '21 18:08 kickthemooon

@kickthemooon thanks for creating this issue! Yes you are correct, we should change this.

FabianKramm avatar Aug 23 '21 08:08 FabianKramm