Skip to content

Conversation

@Bodigrim
Copy link
Collaborator

As noticed in #11437, the implementation of Distribution.Compat.CopyFile.copyFile on Windows replicates System.Directory.copyFileWithMetadata. Given that we already require directory >= 1.2.7 and copyFileWithMetadata was introduced in directory-1.2.6.0, we can go ahead and reuse it.

Template B: This PR does not modify behaviour or interface

E.g. the PR only touches documentation or tests, does refactorings, etc.

Include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@Bodigrim Bodigrim force-pushed the clean-up-copyFile-on-Windows branch from 473178f to f448484 Compare January 17, 2026 12:38
@Bodigrim Bodigrim force-pushed the clean-up-copyFile-on-Windows branch from f448484 to c518413 Compare January 17, 2026 12:46
…copyFileWithMetadata

As noticed in #11437, the implementation of `Distribution.Compat.CopyFile.copyFile`
on Windows replicates `System.Directory.copyFileWithMetadata`.
Given that we already require `directory >= 1.2.7` and `copyFileWithMetadata`
was introduced in `directory-1.2.6.0`, we can go ahead and reuse it.
@Bodigrim Bodigrim force-pushed the clean-up-copyFile-on-Windows branch from c518413 to 2ef1d45 Compare January 17, 2026 12:49
@Bodigrim Bodigrim added the merge me Tell Mergify Bot to merge label Jan 17, 2026
@mergify mergify bot added the ready and waiting Mergify is waiting out the cooldown period label Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge me Tell Mergify Bot to merge ready and waiting Mergify is waiting out the cooldown period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants