From 8e5d7d719c6df33bbc5b275c15115f33f17557d1 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 24 May 2024 23:04:06 +0200 Subject: [PATCH 1/4] cache: move to backend package --- cmd/restic/cmd_cache.go | 2 +- cmd/restic/cmd_check.go | 2 +- cmd/restic/global.go | 2 +- internal/{ => backend}/cache/backend.go | 0 internal/{ => backend}/cache/backend_test.go | 0 internal/{ => backend}/cache/cache.go | 0 internal/{ => backend}/cache/cache_test.go | 0 internal/{ => backend}/cache/dir.go | 0 internal/{ => backend}/cache/dir_test.go | 0 internal/{ => backend}/cache/file.go | 0 internal/{ => backend}/cache/file_test.go | 0 internal/{ => backend}/cache/testing.go | 0 internal/repository/raw_test.go | 2 +- internal/repository/repository.go | 2 +- internal/repository/repository_test.go | 2 +- 15 files changed, 6 insertions(+), 6 deletions(-) rename internal/{ => backend}/cache/backend.go (100%) rename internal/{ => backend}/cache/backend_test.go (100%) rename internal/{ => backend}/cache/cache.go (100%) rename internal/{ => backend}/cache/cache_test.go (100%) rename internal/{ => backend}/cache/dir.go (100%) rename internal/{ => backend}/cache/dir_test.go (100%) rename internal/{ => backend}/cache/file.go (100%) rename internal/{ => backend}/cache/file_test.go (100%) rename internal/{ => backend}/cache/testing.go (100%) diff --git a/cmd/restic/cmd_cache.go b/cmd/restic/cmd_cache.go index 354cec288..651c65fcf 100644 --- a/cmd/restic/cmd_cache.go +++ b/cmd/restic/cmd_cache.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/restic/restic/internal/cache" + "github.com/restic/restic/internal/backend/cache" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/fs" "github.com/restic/restic/internal/ui" diff --git a/cmd/restic/cmd_check.go b/cmd/restic/cmd_check.go index 671cab0e6..11a1c7cb5 100644 --- a/cmd/restic/cmd_check.go +++ b/cmd/restic/cmd_check.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/cobra" - "github.com/restic/restic/internal/cache" + "github.com/restic/restic/internal/backend/cache" "github.com/restic/restic/internal/checker" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/fs" diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 9671f2a26..144445cc0 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -15,6 +15,7 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/backend/azure" "github.com/restic/restic/internal/backend/b2" + "github.com/restic/restic/internal/backend/cache" "github.com/restic/restic/internal/backend/gs" "github.com/restic/restic/internal/backend/limiter" "github.com/restic/restic/internal/backend/local" @@ -27,7 +28,6 @@ import ( "github.com/restic/restic/internal/backend/sema" "github.com/restic/restic/internal/backend/sftp" "github.com/restic/restic/internal/backend/swift" - "github.com/restic/restic/internal/cache" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/fs" "github.com/restic/restic/internal/options" diff --git a/internal/cache/backend.go b/internal/backend/cache/backend.go similarity index 100% rename from internal/cache/backend.go rename to internal/backend/cache/backend.go diff --git a/internal/cache/backend_test.go b/internal/backend/cache/backend_test.go similarity index 100% rename from internal/cache/backend_test.go rename to internal/backend/cache/backend_test.go diff --git a/internal/cache/cache.go b/internal/backend/cache/cache.go similarity index 100% rename from internal/cache/cache.go rename to internal/backend/cache/cache.go diff --git a/internal/cache/cache_test.go b/internal/backend/cache/cache_test.go similarity index 100% rename from internal/cache/cache_test.go rename to internal/backend/cache/cache_test.go diff --git a/internal/cache/dir.go b/internal/backend/cache/dir.go similarity index 100% rename from internal/cache/dir.go rename to internal/backend/cache/dir.go diff --git a/internal/cache/dir_test.go b/internal/backend/cache/dir_test.go similarity index 100% rename from internal/cache/dir_test.go rename to internal/backend/cache/dir_test.go diff --git a/internal/cache/file.go b/internal/backend/cache/file.go similarity index 100% rename from internal/cache/file.go rename to internal/backend/cache/file.go diff --git a/internal/cache/file_test.go b/internal/backend/cache/file_test.go similarity index 100% rename from internal/cache/file_test.go rename to internal/backend/cache/file_test.go diff --git a/internal/cache/testing.go b/internal/backend/cache/testing.go similarity index 100% rename from internal/cache/testing.go rename to internal/backend/cache/testing.go diff --git a/internal/repository/raw_test.go b/internal/repository/raw_test.go index 28786dbcd..ac65a8dc8 100644 --- a/internal/repository/raw_test.go +++ b/internal/repository/raw_test.go @@ -7,9 +7,9 @@ import ( "testing" "github.com/restic/restic/internal/backend" + "github.com/restic/restic/internal/backend/cache" "github.com/restic/restic/internal/backend/mem" "github.com/restic/restic/internal/backend/mock" - "github.com/restic/restic/internal/cache" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/repository" "github.com/restic/restic/internal/restic" diff --git a/internal/repository/repository.go b/internal/repository/repository.go index 34a362c55..7233c7854 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -14,8 +14,8 @@ import ( "github.com/klauspost/compress/zstd" "github.com/restic/chunker" "github.com/restic/restic/internal/backend" + "github.com/restic/restic/internal/backend/cache" "github.com/restic/restic/internal/backend/dryrun" - "github.com/restic/restic/internal/cache" "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" diff --git a/internal/repository/repository_test.go b/internal/repository/repository_test.go index 92eb1bbae..679eaaaab 100644 --- a/internal/repository/repository_test.go +++ b/internal/repository/repository_test.go @@ -14,9 +14,9 @@ import ( "time" "github.com/restic/restic/internal/backend" + "github.com/restic/restic/internal/backend/cache" "github.com/restic/restic/internal/backend/local" "github.com/restic/restic/internal/backend/mem" - "github.com/restic/restic/internal/cache" "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/index" From 50ec408302dabf43b00aab44bfa897f83193788f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 24 May 2024 23:06:44 +0200 Subject: [PATCH 2/4] index: move to repository package --- cmd/restic/cmd_debug.go | 2 +- cmd/restic/cmd_list.go | 2 +- cmd/restic/cmd_repair_index_integration_test.go | 2 +- internal/checker/checker.go | 2 +- internal/{ => repository}/index/associated_data.go | 0 internal/{ => repository}/index/associated_data_test.go | 0 internal/{ => repository}/index/index.go | 0 internal/{ => repository}/index/index_parallel.go | 0 internal/{ => repository}/index/index_parallel_test.go | 4 ++-- internal/{ => repository}/index/index_test.go | 2 +- internal/{ => repository}/index/indexmap.go | 0 internal/{ => repository}/index/indexmap_test.go | 0 internal/{ => repository}/index/master_index.go | 0 internal/{ => repository}/index/master_index_test.go | 2 +- internal/{ => repository}/index/testing.go | 0 internal/repository/prune.go | 2 +- internal/repository/repair_index.go | 2 +- internal/repository/repository.go | 2 +- internal/repository/repository_test.go | 2 +- 19 files changed, 12 insertions(+), 12 deletions(-) rename internal/{ => repository}/index/associated_data.go (100%) rename internal/{ => repository}/index/associated_data_test.go (100%) rename internal/{ => repository}/index/index.go (100%) rename internal/{ => repository}/index/index_parallel.go (100%) rename internal/{ => repository}/index/index_parallel_test.go (90%) rename internal/{ => repository}/index/index_test.go (99%) rename internal/{ => repository}/index/indexmap.go (100%) rename internal/{ => repository}/index/indexmap_test.go (100%) rename internal/{ => repository}/index/master_index.go (100%) rename internal/{ => repository}/index/master_index_test.go (99%) rename internal/{ => repository}/index/testing.go (100%) diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index 7b0cdb53e..ff1e4c28b 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -22,9 +22,9 @@ import ( "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" ) diff --git a/cmd/restic/cmd_list.go b/cmd/restic/cmd_list.go index 27f59b4ab..6f4430420 100644 --- a/cmd/restic/cmd_list.go +++ b/cmd/restic/cmd_list.go @@ -4,7 +4,7 @@ import ( "context" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" "github.com/spf13/cobra" diff --git a/cmd/restic/cmd_repair_index_integration_test.go b/cmd/restic/cmd_repair_index_integration_test.go index e11b2f91b..9bfc93b40 100644 --- a/cmd/restic/cmd_repair_index_integration_test.go +++ b/cmd/restic/cmd_repair_index_integration_test.go @@ -10,7 +10,7 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" "github.com/restic/restic/internal/ui/termstatus" diff --git a/internal/checker/checker.go b/internal/checker/checker.go index 61c017414..fb6fbacd5 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -12,9 +12,9 @@ import ( "github.com/restic/restic/internal/backend/s3" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" "golang.org/x/sync/errgroup" diff --git a/internal/index/associated_data.go b/internal/repository/index/associated_data.go similarity index 100% rename from internal/index/associated_data.go rename to internal/repository/index/associated_data.go diff --git a/internal/index/associated_data_test.go b/internal/repository/index/associated_data_test.go similarity index 100% rename from internal/index/associated_data_test.go rename to internal/repository/index/associated_data_test.go diff --git a/internal/index/index.go b/internal/repository/index/index.go similarity index 100% rename from internal/index/index.go rename to internal/repository/index/index.go diff --git a/internal/index/index_parallel.go b/internal/repository/index/index_parallel.go similarity index 100% rename from internal/index/index_parallel.go rename to internal/repository/index/index_parallel.go diff --git a/internal/index/index_parallel_test.go b/internal/repository/index/index_parallel_test.go similarity index 90% rename from internal/index/index_parallel_test.go rename to internal/repository/index/index_parallel_test.go index 61b0aad63..38dafb507 100644 --- a/internal/index/index_parallel_test.go +++ b/internal/repository/index/index_parallel_test.go @@ -6,13 +6,13 @@ import ( "testing" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/repository" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" ) -var repoFixture = filepath.Join("..", "repository", "testdata", "test-repo.tar.gz") +var repoFixture = filepath.Join("..", "testdata", "test-repo.tar.gz") func TestRepositoryForAllIndexes(t *testing.T) { repo, _, cleanup := repository.TestFromFixture(t, repoFixture) diff --git a/internal/index/index_test.go b/internal/repository/index/index_test.go similarity index 99% rename from internal/index/index_test.go rename to internal/repository/index/index_test.go index 1a487f82f..bf752d3d3 100644 --- a/internal/index/index_test.go +++ b/internal/repository/index/index_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/restic/restic/internal/feature" - "github.com/restic/restic/internal/index" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" ) diff --git a/internal/index/indexmap.go b/internal/repository/index/indexmap.go similarity index 100% rename from internal/index/indexmap.go rename to internal/repository/index/indexmap.go diff --git a/internal/index/indexmap_test.go b/internal/repository/index/indexmap_test.go similarity index 100% rename from internal/index/indexmap_test.go rename to internal/repository/index/indexmap_test.go diff --git a/internal/index/master_index.go b/internal/repository/index/master_index.go similarity index 100% rename from internal/index/master_index.go rename to internal/repository/index/master_index.go diff --git a/internal/index/master_index_test.go b/internal/repository/index/master_index_test.go similarity index 99% rename from internal/index/master_index_test.go rename to internal/repository/index/master_index_test.go index 7a2487cd4..23185962e 100644 --- a/internal/index/master_index_test.go +++ b/internal/repository/index/master_index_test.go @@ -10,8 +10,8 @@ import ( "github.com/restic/restic/internal/checker" "github.com/restic/restic/internal/crypto" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/repository" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" ) diff --git a/internal/index/testing.go b/internal/repository/index/testing.go similarity index 100% rename from internal/index/testing.go rename to internal/repository/index/testing.go diff --git a/internal/repository/prune.go b/internal/repository/prune.go index 1dae68c15..6f2182ac5 100644 --- a/internal/repository/prune.go +++ b/internal/repository/prune.go @@ -7,8 +7,8 @@ import ( "sort" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/pack" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" ) diff --git a/internal/repository/repair_index.go b/internal/repository/repair_index.go index e01131923..868b0a894 100644 --- a/internal/repository/repair_index.go +++ b/internal/repository/repair_index.go @@ -3,8 +3,8 @@ package repository import ( "context" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/pack" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" ) diff --git a/internal/repository/repository.go b/internal/repository/repository.go index 7233c7854..97fc0f506 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -19,8 +19,8 @@ import ( "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/pack" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" diff --git a/internal/repository/repository_test.go b/internal/repository/repository_test.go index 679eaaaab..c06d4f25b 100644 --- a/internal/repository/repository_test.go +++ b/internal/repository/repository_test.go @@ -19,8 +19,8 @@ import ( "github.com/restic/restic/internal/backend/mem" "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/index" "github.com/restic/restic/internal/repository" + "github.com/restic/restic/internal/repository/index" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/test" rtest "github.com/restic/restic/internal/test" From 5e0ea8fcfa2c762e56cd6846fe3f00a56945872f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 24 May 2024 23:09:58 +0200 Subject: [PATCH 3/4] pack: move to repository package --- cmd/restic/cmd_debug.go | 2 +- internal/checker/checker.go | 2 +- internal/repository/check.go | 2 +- internal/{ => repository}/pack/doc.go | 0 internal/{ => repository}/pack/pack.go | 0 internal/{ => repository}/pack/pack_internal_test.go | 0 internal/{ => repository}/pack/pack_test.go | 2 +- internal/repository/packer_manager.go | 2 +- internal/repository/prune.go | 2 +- internal/repository/repair_index.go | 2 +- internal/repository/repository.go | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename internal/{ => repository}/pack/doc.go (100%) rename internal/{ => repository}/pack/pack.go (100%) rename internal/{ => repository}/pack/pack_internal_test.go (100%) rename internal/{ => repository}/pack/pack_test.go (98%) diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index ff1e4c28b..1a42995fd 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -22,9 +22,9 @@ import ( "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository" "github.com/restic/restic/internal/repository/index" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" ) diff --git a/internal/checker/checker.go b/internal/checker/checker.go index fb6fbacd5..82348c7ea 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -12,9 +12,9 @@ import ( "github.com/restic/restic/internal/backend/s3" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository" "github.com/restic/restic/internal/repository/index" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" "golang.org/x/sync/errgroup" diff --git a/internal/repository/check.go b/internal/repository/check.go index f16cd7492..0bfc39084 100644 --- a/internal/repository/check.go +++ b/internal/repository/check.go @@ -14,7 +14,7 @@ import ( "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/hashing" - "github.com/restic/restic/internal/pack" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" ) diff --git a/internal/pack/doc.go b/internal/repository/pack/doc.go similarity index 100% rename from internal/pack/doc.go rename to internal/repository/pack/doc.go diff --git a/internal/pack/pack.go b/internal/repository/pack/pack.go similarity index 100% rename from internal/pack/pack.go rename to internal/repository/pack/pack.go diff --git a/internal/pack/pack_internal_test.go b/internal/repository/pack/pack_internal_test.go similarity index 100% rename from internal/pack/pack_internal_test.go rename to internal/repository/pack/pack_internal_test.go diff --git a/internal/pack/pack_test.go b/internal/repository/pack/pack_test.go similarity index 98% rename from internal/pack/pack_test.go rename to internal/repository/pack/pack_test.go index 76ff5c127..5ac146348 100644 --- a/internal/pack/pack_test.go +++ b/internal/repository/pack/pack_test.go @@ -12,7 +12,7 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/backend/mem" "github.com/restic/restic/internal/crypto" - "github.com/restic/restic/internal/pack" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" ) diff --git a/internal/repository/packer_manager.go b/internal/repository/packer_manager.go index 76734fb87..8c7c0b9d5 100644 --- a/internal/repository/packer_manager.go +++ b/internal/repository/packer_manager.go @@ -16,7 +16,7 @@ import ( "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/fs" - "github.com/restic/restic/internal/pack" + "github.com/restic/restic/internal/repository/pack" "github.com/minio/sha256-simd" ) diff --git a/internal/repository/prune.go b/internal/repository/prune.go index 6f2182ac5..b8d3ba97b 100644 --- a/internal/repository/prune.go +++ b/internal/repository/prune.go @@ -7,8 +7,8 @@ import ( "sort" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository/index" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" ) diff --git a/internal/repository/repair_index.go b/internal/repository/repair_index.go index 868b0a894..770809254 100644 --- a/internal/repository/repair_index.go +++ b/internal/repository/repair_index.go @@ -3,8 +3,8 @@ package repository import ( "context" - "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository/index" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" ) diff --git a/internal/repository/repository.go b/internal/repository/repository.go index 97fc0f506..f2c28cece 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -19,8 +19,8 @@ import ( "github.com/restic/restic/internal/crypto" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/pack" "github.com/restic/restic/internal/repository/index" + "github.com/restic/restic/internal/repository/pack" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/ui/progress" From 496e57f956fd1804f798cf4f531048cac0fcd994 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 24 May 2024 23:11:53 +0200 Subject: [PATCH 4/4] 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"