Skip to content

Conversation

@kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Nov 4, 2025

Fixes #3830

#5892 allows us to implement this, however it is a corner-case that wasn't supported before so i chose to not implement it at the time. It instead now at least show a proper error message.

It might be interesting to implement it in the future to avoid breaking users if issues such as the one described in #3830 happened again.

TODO:

  • Implement file -> dir (see OpamRepositoryBackend)
  • Implement dir -> file (see OpamRepositoryBackend, this one is a quite a bit more complicated as it involves checking that the directory doesn't contain other files that aren't moved too and moving them at the same time if so)
  • Add more tests (e.g. git repository, patchDiff.ml, etc...)

@kit-ty-kate kit-ty-kate added the PR: WIP Not for merge at this stage label Nov 4, 2025
@arozovyk arozovyk self-assigned this Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: WIP Not for merge at this stage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opam update patch fails on a file->dir rename in opam repository

2 participants