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 back files from VM skips all symlinks #76

Closed
mhuijgen opened this issue Nov 30, 2023 · 4 comments
Closed

Sync back files from VM skips all symlinks #76

mhuijgen opened this issue Nov 30, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@mhuijgen
Copy link
Contributor

It looks like rsync is ignoring symlinks during sync back.

Tearing down VM
  Syncing back files
  /usr/bin/rsync -uzrtopg runner@localhost:work/ /home/runner/work
  skipping non-regular file "my-project/"my-project/Server/node_modules/.bin/acorn"
  skipping non-regular file "my-project/"my-project/Server/node_modules/.bin/browserslist"
  skipping non-regular file "my-project/"my-project/Server/node_modules/.bin/color-support"
  skipping non-regular file "my-project/"my-project/Server/node_modules/.bin/conc"

Is this intentional or oversight?

If the latter, would it be possible to add -l to the rsync command used:
--links, -l copy symlinks as symlinks

Looking at the rsync flags used to sync to the VM they are covered by the -a option
/usr/bin/rsync -auzrtopg ......

Using -a could be an option as well, but this also includes special device files (-D option) as well as symlinks.
If you want to keep using -a, I think its safe to remove rtopg options, since they are part of the -a option.

@jacob-carlborg jacob-carlborg added the bug Something isn't working label Nov 30, 2023
@jacob-carlborg
Copy link
Contributor

Is this intentional or oversight?

This is an oversight.

Perhaps it would make sense to use the same set of flags to sync in both directions.

@mhuijgen
Copy link
Contributor Author

Hi @jacob-carlborg,

Can I be of help by providing a PR that makes it use the same flags on both directions? It would really help us out of this rsync symlink issue would be fixed.

@jacob-carlborg
Copy link
Contributor

Can I be of help by providing a PR that makes it use the same flags on both directions? It would really help us out of this rsync symlink issue would be fixed.

@mhuijgen sure, I've completely forgotten about this.

mhuijgen added a commit to mhuijgen/cross-platform-action that referenced this issue Jan 30, 2024
@mhuijgen
Copy link
Contributor Author

Created a PR #81

korli added a commit to korli/action that referenced this issue Mar 15, 2024
Release 0.23.0

Added:
- Add support for FreeBSD 14.0 ([cross-platform-actions#74](cross-platform-actions#74))
- Add post run step that prints the VM output
- Support hardware accelerated virtualization on Linux runners ([cross-platform-actions#47](cross-platform-actions#47))

Fixed:
- OpenBSD VM fails during "Initializing VM" with QEMU on macOS ([cross-platform-actions#73](cross-platform-actions#73))
- Use same options for rsync in both directions ([cross-platform-actions#76](cross-platform-actions#76))

Changed:
- Update qemu to 8.2.0 for CVTPS2PD fix ([cross-platform-actions#78](cross-platform-actions#78))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants