Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync non existing localSubPath makes an error #1031

Closed
igoooor opened this issue Mar 26, 2020 · 2 comments
Closed

Sync non existing localSubPath makes an error #1031

igoooor opened this issue Mar 26, 2020 · 2 comments
Assignees
Labels
area/sync Issues related to the real-time code synchronization kind/enhancement Enhancement of an existing feature / improvement

Comments

@igoooor
Copy link

igoooor commented Mar 26, 2020

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

@FabianKramm
Copy link
Collaborator

@igoooor thanks for reporting! Yes currently the local sub path is not created when it does not exist, however I think we could change this, shouldn't be a problem.

@FabianKramm FabianKramm self-assigned this Mar 26, 2020
@FabianKramm FabianKramm added area/sync Issues related to the real-time code synchronization kind/enhancement Enhancement of an existing feature / improvement labels Mar 26, 2020
FabianKramm added a commit to FabianKramm/devspace that referenced this issue Mar 27, 2020
FabianKramm added a commit to FabianKramm/devspace that referenced this issue Mar 27, 2020
@FabianKramm
Copy link
Collaborator

Implemented in v4.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sync Issues related to the real-time code synchronization kind/enhancement Enhancement of an existing feature / improvement
Projects
None yet
Development

No branches or pull requests

2 participants