Skip to content

Extract snapshot data types from restic package#5525

Merged
MichaelEischer merged 3 commits into
restic:masterfrom
MichaelEischer:split-restic-directory
Oct 3, 2025
Merged

Extract snapshot data types from restic package#5525
MichaelEischer merged 3 commits into
restic:masterfrom
MichaelEischer:split-restic-directory

Conversation

@MichaelEischer

Copy link
Copy Markdown
Member

What does this PR change? What problem does it solve?

The restic package currently contains data types for two relatively independent parts of restic: the repository interface and the snapshot data types. Quite a while ago, I extracted the backend types from the restic package and untangled the remaining code. To wrap up this refactoring, move the snapshot data types into a new package called data. This ensures that the different layers of restic remain decoupled from each other.

The change itself is unfortunately one mega-commit, but slicing the change into smaller parts introduces unnecessary churn as it requires temporary import changes that have to be reverted later on.

Was the change previously discussed in an issue or on the forum?

Follow up to #4499 .

Checklist

  • [ ] I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • [ ] There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer force-pushed the split-restic-directory branch from e20cdb7 to 70a24cc Compare October 3, 2025 17:10

@MichaelEischer MichaelEischer left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM.

Sorry in advance to everyone caught in the incoming merge conflict fallout. 95% of all cases can be solved by keeping your change and just replacing restic with data in all places where the compiler/linter complains.

@MichaelEischer MichaelEischer merged commit 93720f0 into restic:master Oct 3, 2025
12 checks passed
@MichaelEischer MichaelEischer deleted the split-restic-directory branch October 3, 2025 17:24
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.

1 participant