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

Windows directory copy #292

Merged
merged 6 commits into from Dec 19, 2022
Merged

Conversation

martintc
Copy link
Contributor

@martintc martintc commented Dec 17, 2022

I'm submitting a

  • bug fix
  • feature
  • documentation addition

What is the current behaviour?

Directories fail to copy on windows

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Run a directory copy manifest on windows

#275

What is the expected behavior?

Be able to have a manifest copy a directory

What is the motivation / use case for changing the behavior?

Fix broken functionality

Please tell us about your environment:

Version (comtrya --version): 0.8.0
Operating system: Windows 11

@martintc martintc requested review from a team, rawkode and icepuma and removed request for a team December 17, 2022 08:56
@codecov-commenter
Copy link

Codecov Report

Base: 46.64% // Head: 46.64% // No change to project coverage 👍

Coverage data is based on head (cd19ce4) compared to base (7e6eace).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #292   +/-   ##
=======================================
  Coverage   46.64%   46.64%           
=======================================
  Files          79       79           
  Lines        2742     2742           
=======================================
  Hits         1279     1279           
  Misses       1463     1463           
Impacted Files Coverage Δ
lib/src/actions/directory/copy.rs 33.33% <ø> (ø)
lib/src/steps/initializers/command_found.rs 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -23,6 +23,17 @@ mod tests {
assert_eq!(false, result.unwrap());
}

#[cfg(target_family = "windows")]
#[test]
fn it_returns_true_when_found() {
Copy link
Member

Choose a reason for hiding this comment

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

Optional: Can't we add a useful xcopy test here?

@martintc martintc merged commit 16336ce into comtrya:main Dec 19, 2022
@martintc martintc deleted the windows-directory-copy branch December 29, 2023 23:06
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.

None yet

3 participants