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

Enable copying symlinks when using remote docker. #885

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

Alexhuszagh
Copy link
Contributor

This handles the reads the link dst from the symlink when using temporary directories, and creates a softlink to the path (keeping relative and absolute symlinks valid) in the temporary directory, which is then copied with the same permissions over the dst filesystem. This should not keep the same metadata, but since we fingerprint source files, this should not matter.

If symlinks are created, it issues a warning that there might be bugs that the file pointed to by the symlink is not mounted and the build may fail in that case.

@Alexhuszagh Alexhuszagh requested a review from a team as a code owner June 30, 2022 15:34
@Alexhuszagh
Copy link
Contributor Author

Addresses the comments mentioned here.

@Alexhuszagh Alexhuszagh marked this pull request as draft June 30, 2022 15:36
This handles the reads the link dst from the symlink when using
temporary directories, and creates a softlink to the path (keeping
relative and absolute symlinks valid) in the temporary directory, which
is then copied with the same permissions over the dst filesystem. This
should not keep the same metadata, but since we fingerprint source
files, this should not matter.
@Alexhuszagh Alexhuszagh marked this pull request as ready for review June 30, 2022 15:54
Copy link
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 30, 2022

Build succeeded:

@bors bors bot merged commit 5a55c2e into cross-rs:main Jun 30, 2022
@Emilgardis Emilgardis added this to the v0.2.3 milestone Jul 1, 2022
@Alexhuszagh Alexhuszagh deleted the symlink branch July 1, 2022 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants