From 496e57f956fd1804f798cf4f531048cac0fcd994 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 24 May 2024 23:11:53 +0200 Subject: [PATCH] hashing: move to repository package --- internal/checker/checker_test.go | 2 +- internal/repository/check.go | 2 +- internal/{ => repository}/hashing/reader.go | 0 internal/{ => repository}/hashing/reader_test.go | 0 internal/{ => repository}/hashing/writer.go | 0 internal/{ => repository}/hashing/writer_test.go | 0 internal/repository/packer_manager.go | 2 +- 7 files changed, 3 insertions(+), 3 deletions(-) rename internal/{ => repository}/hashing/reader.go (100%) rename internal/{ => repository}/hashing/reader_test.go (100%) rename internal/{ => repository}/hashing/writer.go (100%) rename internal/{ => repository}/hashing/writer_test.go (100%) diff --git a/internal/checker/checker_test.go b/internal/checker/checker_test.go index 1219f4e2b..5eaf550ba 100644 --- a/internal/checker/checker_test.go +++ b/internal/checker/checker_test.go @@ -17,8 +17,8 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/checker" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/hashing" "github.com/restic/restic/internal/repository" + "github.com/restic/restic/internal/repository/hashing" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/test" "golang.org/x/sync/errgroup" diff --git a/internal/repository/check.go b/internal/repository/check.go index 0bfc39084..27eb11d71 100644 --- a/internal/repository/check.go +++ b/internal/repository/check.go @@ -13,7 +13,7 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/hashing" + "github.com/restic/restic/internal/repository/hashing" "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" ) diff --git a/internal/hashing/reader.go b/internal/repository/hashing/reader.go similarity index 100% rename from internal/hashing/reader.go rename to internal/repository/hashing/reader.go diff --git a/internal/hashing/reader_test.go b/internal/repository/hashing/reader_test.go similarity index 100% rename from internal/hashing/reader_test.go rename to internal/repository/hashing/reader_test.go diff --git a/internal/hashing/writer.go b/internal/repository/hashing/writer.go similarity index 100% rename from internal/hashing/writer.go rename to internal/repository/hashing/writer.go diff --git a/internal/hashing/writer_test.go b/internal/repository/hashing/writer_test.go similarity index 100% rename from internal/hashing/writer_test.go rename to internal/repository/hashing/writer_test.go diff --git a/internal/repository/packer_manager.go b/internal/repository/packer_manager.go index 8c7c0b9d5..213a3df41 100644 --- a/internal/repository/packer_manager.go +++ b/internal/repository/packer_manager.go @@ -10,7 +10,7 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/hashing" + "github.com/restic/restic/internal/repository/hashing" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/crypto"