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

Split Copier into Walker and Copier steps #294

Merged
merged 11 commits into from
Sep 27, 2024

Conversation

Qalthos
Copy link
Contributor

@Qalthos Qalthos commented Sep 20, 2024

Walker recursively looks for paths that need to be copied over, and returns a list of destination/original path objects

Copier takes that list and does the actual copying.

Notes:

  • meta handling is broken right now, I forgot about it
  • tests have not been touched yet
  • --force is currently a no-op
  • .gitignore's meta is not getting applied correctly
  • With --force reinstated, there is no good way to access the file conflict handling of Copier
    • Tests have been added

Open Questions:

  • Should Walker know to skip existing files that have no changes?
    • Answer: yes

Related issue: #163

@Qalthos Qalthos added the enhancement New feature or request label Sep 20, 2024
src/ansible_creator/subcommands/init.py Outdated Show resolved Hide resolved
src/ansible_creator/utils.py Outdated Show resolved Hide resolved
src/ansible_creator/utils.py Show resolved Hide resolved
@Qalthos Qalthos force-pushed the less-destructive branch 5 times, most recently from 4c88051 to 4db1c94 Compare September 23, 2024 15:29
@Qalthos Qalthos marked this pull request as ready for review September 23, 2024 15:30
@Qalthos Qalthos requested a review from a team as a code owner September 23, 2024 15:30
@Qalthos Qalthos requested review from shatakshiiii, tanwigeetika1618 and cidrblock and removed request for a team September 23, 2024 15:30
@Qalthos Qalthos force-pushed the less-destructive branch 4 times, most recently from 250ab17 to d4715ba Compare September 27, 2024 15:40
@Qalthos Qalthos merged commit 268f6b4 into ansible:main Sep 27, 2024
17 checks passed
@Qalthos Qalthos deleted the less-destructive branch September 27, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants