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

Resolve symlink targets to abs path before copying #857

Merged
merged 4 commits into from
Nov 22, 2019

Conversation

cvgw
Copy link
Contributor

@cvgw cvgw commented Nov 12, 2019

Fixes #774

Description

Fix issues with adding/copying files to destination directories which are actually symlinks. Previously the code would overwrite said symlinks and destroy the original contents.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

Examples of user facing changes:
- Fixes issue with ADD and COPY commands which target a symlink directory

@cvgw cvgw force-pushed the u/cgwippern/symlink-bug branch 4 times, most recently from 1d1b139 to 11a98e9 Compare November 15, 2019 17:25
@cvgw cvgw changed the title WIP Resolve symlink targets to abs path before copying Nov 15, 2019
@cvgw cvgw merged commit b057776 into GoogleContainerTools:master Nov 22, 2019
@cvgw cvgw deleted the u/cgwippern/symlink-bug branch November 22, 2019 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ADDing file to symlink directory destroys symlink
3 participants