Thanks @cnr, it does help! It has also helped that you shared the command line, because when I read “when I do a local push” in your first message I had assumed that it was the
balena local push command instead of the
balena push command. That’s good, because
balena local push is deprecated and will be removed soon.
I believe it is a bug in the CLI and I have created this GitHub issue:
As a workaround in case this is getting in your way, you could create a tgz file with the symlinks, then use a RUN instruction in the Dockerfile to extract them on the device. Something along these lines:
# create a tgz with the symlinks
find . -maxdepth 1 -type l | xargs tar cvzf code-links.tgz
balena push 10.0.0.65
The Dockerfile should extract the symlinks:
COPY code-links.tgz ./
RUN tar xvzf code-links.tgz
Let us know if you need help with the workaround or have any other questions. Thanks again for reporting this issue!