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
Existing invalid symlink inside the project is breaking balena push even if it has been ignored inside .dockerignore file. Affects all balena CLI versions and OS versions this is run on.
Steps to reproduce:
Create a minimal application
Create an invalid symlink ln -sf non_existing_file invalid_symlink
Add invalid_symlink to .dockeignore file
balena push the project
The command exits early with:
Packaging the project source...
[Debug] Tarring all non-ignored files...
No such file or directory: (..)/invalid_symlink
Error: ENOENT: no such file or directory, stat '(..)/invalid_symlink'
It looks like the error originates early in listFiles of lib/utils/ignore.ts and at that point .dockerignore is still not being processed. An easier fix could be to ignore all broken symlinks at that stage by default.
The text was updated successfully, but these errors were encountered:
Existing invalid symlink inside the project is breaking
balena push
even if it has been ignored inside.dockerignore
file. Affects all balena CLI versions and OS versions this is run on.Steps to reproduce:
ln -sf non_existing_file invalid_symlink
invalid_symlink
to.dockeignore
filebalena push
the projectThe command exits early with:
It looks like the error originates early in
listFiles
oflib/utils/ignore.ts
and at that point.dockerignore
is still not being processed. An easier fix could be to ignore all broken symlinks at that stage by default.The text was updated successfully, but these errors were encountered: