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

Allow copying symlinks as links, rather than copying the target #1929

Closed
wants to merge 4 commits into from

Conversation

jamesrtnz
Copy link

@jamesrtnz jamesrtnz commented Jun 25, 2023

All submissions

Improving the Mackup codebase

  • My submission passes the tests
  • I have linted the code locally prior to submission
  • I have written new tests as applicable
  • I have added an explanation of what the changes do

Copy link
Owner

@lra lra left a comment

Choose a reason for hiding this comment

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

What problem is being solved here? Any concrete example? This seems to change the whole behavior of Mackup for a specific issue.

@jamesrtnz
Copy link
Author

Hi,

To be honest, as it's been a while since I created the PR, I'm not 100% sure what my driver was. The functionality being implemented was useful to me personally, and I thought it might be useful for others too.

I think the rationale was I had file(s) like bash profile etc that were actually stored in GIT source control, and symlinked to their required location (for example, .bash_profile -> ~/GIT/jrt-profile/bash_profile), and I wanted Mackup to backup/store the link rather than the actual source file.

Partially the PR was raised as a personal learning exercise; especially around the unit test functionality etc.

I agree that as a global change this may be a bit OTT, but I don't know enough Python to work out how to implement the configuration setting on a per-app basis.

@lra
Copy link
Owner

lra commented Dec 17, 2023

Ok thanks, let's close this as I don't know what to do with it. You are free to iterate though, closing != deleting.

@lra lra closed this Dec 17, 2023
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.

2 participants