Skip to content

Sync non existing localSubPath makes an error #1031

@igoooor

Description

@igoooor

What happened?
With the following sync configuration:

dev:
  sync:
  - imageName: backend
    containerPath: /app/vendor/
    localSubPath: vendor/
    ...

and if the local folder ./vendor/ does not exist when starting the sync, the following error happens and the sync stops:

[fatal]  start sync: Unable to start sync: start sync: create sync: eval symlinks: lstat vendor: no such file or directory

What did you expect to happen instead?
The sync to work, and the container folder to be synced back to the local machine.

Local Environment:

  • Operating System: mac
  • Deployment method: helm
  • devspace version 4.8.0

Kubernetes Cluster:

  • Cloud Provider: local with docker for mac
  • Kubernetes Version: 1.16

/kind bug

Metadata

Metadata

Assignees

Labels

area/syncIssues related to the real-time code synchronizationkind/enhancementEnhancement of an existing feature / improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions