Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Okstad <pokstad@gitlab.com>2019-07-31 17:19:31 +0300
committerPaul Okstad <pokstad@gitlab.com>2019-07-31 17:19:31 +0300
commitc700a6150855a6a8a0aafdde2717dc19e55cc6e8 (patch)
tree17f3b5468fc5d4d4aa0a48e10faa74037ae59146
parent18d4cda8bd587604e093b2771a7c2544d834b38c (diff)
parentfebc866e1946099084513a54d4fec5cf164463de (diff)
Merge branch 'jv-use-embedded-proto' into 'master'
Use embedded Go stubs for gitaly-proto See merge request gitlab-org/gitaly!1385
-rw-r--r--NOTICE23
-rwxr-xr-x_support/gitaly-proto-tagged22
-rw-r--r--_support/makegen.go8
-rwxr-xr-x_support/migrate-proto29
-rwxr-xr-x_support/vendor-gitaly-proto10
-rw-r--r--client/receive_pack.go2
-rw-r--r--client/std_stream.go2
-rw-r--r--client/upload_archive.go2
-rw-r--r--client/upload_pack.go2
-rw-r--r--cmd/gitaly-ssh/auth_test.go2
-rw-r--r--cmd/gitaly-ssh/receive_pack.go2
-rw-r--r--cmd/gitaly-ssh/upload_archive.go2
-rw-r--r--cmd/gitaly-ssh/upload_pack.go2
-rw-r--r--go.mod4
-rw-r--r--go.sum2
-rw-r--r--internal/cache/cachedb.go2
-rw-r--r--internal/cache/cachedb_test.go2
-rw-r--r--internal/cache/keyer.go2
-rw-r--r--internal/git/catfile/catfile.go2
-rw-r--r--internal/git/log/commit.go2
-rw-r--r--internal/git/log/commit_test.go2
-rw-r--r--internal/git/log/last_commit.go2
-rw-r--r--internal/git/log/log.go2
-rw-r--r--internal/git/log/tag.go2
-rw-r--r--internal/git/objectpool/clone.go2
-rw-r--r--internal/git/objectpool/fetch.go2
-rw-r--r--internal/git/objectpool/link.go2
-rw-r--r--internal/git/objectpool/pool.go2
-rw-r--r--internal/git/objectpool/proto.go2
-rw-r--r--internal/git/ref.go2
-rw-r--r--internal/git/updateref/updateref_test.go2
-rw-r--r--internal/helper/fieldextractors/fieldextractor.go2
-rw-r--r--internal/helper/repo_test.go2
-rw-r--r--internal/middleware/cache/cache.go2
-rw-r--r--internal/middleware/cache/cache_test.go2
-rw-r--r--internal/middleware/cache/testdata/stream.pb.go2
-rw-r--r--internal/praefect/protoregistry/protoregistry.go2
-rw-r--r--internal/praefect/protoregistry/protoregistry_test.go2
-rw-r--r--internal/praefect/protoregistry/targetrepo.go2
-rw-r--r--internal/praefect/protoregistry/targetrepo_test.go2
-rw-r--r--internal/praefect/replicator.go2
-rw-r--r--internal/rubyserver/proxy.go2
-rw-r--r--internal/rubyserver/rubyserver.go2
-rw-r--r--internal/rubyserver/rubyserver_test.go2
-rw-r--r--internal/rubyserver/testhelper_test.go2
-rw-r--r--internal/service/blob/get_blob.go2
-rw-r--r--internal/service/blob/get_blob_test.go2
-rw-r--r--internal/service/blob/get_blobs.go2
-rw-r--r--internal/service/blob/get_blobs_test.go2
-rw-r--r--internal/service/blob/lfs_pointers.go2
-rw-r--r--internal/service/blob/lfs_pointers_test.go2
-rw-r--r--internal/service/blob/server.go2
-rw-r--r--internal/service/blob/testhelper_test.go2
-rw-r--r--internal/service/cleanup/apply_bfg_object_map.go2
-rw-r--r--internal/service/cleanup/apply_bfg_object_map_stream.go2
-rw-r--r--internal/service/cleanup/apply_bfg_object_map_stream_test.go2
-rw-r--r--internal/service/cleanup/apply_bfg_object_map_test.go2
-rw-r--r--internal/service/cleanup/internalrefs/cleaner.go2
-rw-r--r--internal/service/cleanup/notifier/notifier.go2
-rw-r--r--internal/service/cleanup/server.go2
-rw-r--r--internal/service/cleanup/testhelper_test.go2
-rw-r--r--internal/service/commit/between.go2
-rw-r--r--internal/service/commit/between_test.go2
-rw-r--r--internal/service/commit/commit_messages.go2
-rw-r--r--internal/service/commit/commit_messages_test.go2
-rw-r--r--internal/service/commit/commit_signatures.go2
-rw-r--r--internal/service/commit/commit_signatures_test.go2
-rw-r--r--internal/service/commit/commits_by_message.go2
-rw-r--r--internal/service/commit/commits_by_message_test.go2
-rw-r--r--internal/service/commit/commits_helper.go2
-rw-r--r--internal/service/commit/count_commits.go2
-rw-r--r--internal/service/commit/count_commits_test.go2
-rw-r--r--internal/service/commit/count_diverging_commits.go2
-rw-r--r--internal/service/commit/count_diverging_commits_test.go2
-rw-r--r--internal/service/commit/extractsignature.go2
-rw-r--r--internal/service/commit/extractsignature_test.go2
-rw-r--r--internal/service/commit/filter_shas_with_signatures.go2
-rw-r--r--internal/service/commit/filter_shas_with_signatures_test.go2
-rw-r--r--internal/service/commit/find_all_commits.go2
-rw-r--r--internal/service/commit/find_all_commits_test.go2
-rw-r--r--internal/service/commit/find_commit.go2
-rw-r--r--internal/service/commit/find_commit_test.go2
-rw-r--r--internal/service/commit/find_commits.go2
-rw-r--r--internal/service/commit/find_commits_test.go2
-rw-r--r--internal/service/commit/isancestor.go2
-rw-r--r--internal/service/commit/isancestor_test.go2
-rw-r--r--internal/service/commit/languages.go2
-rw-r--r--internal/service/commit/languages_test.go2
-rw-r--r--internal/service/commit/last_commit_for_path.go2
-rw-r--r--internal/service/commit/last_commit_for_path_test.go2
-rw-r--r--internal/service/commit/list_commits_by_oid.go2
-rw-r--r--internal/service/commit/list_commits_by_oid_test.go2
-rw-r--r--internal/service/commit/list_commits_by_ref_name.go2
-rw-r--r--internal/service/commit/list_commits_by_ref_name_test.go2
-rw-r--r--internal/service/commit/list_files.go2
-rw-r--r--internal/service/commit/list_files_test.go2
-rw-r--r--internal/service/commit/list_last_commits_for_tree.go2
-rw-r--r--internal/service/commit/list_last_commits_for_tree_test.go2
-rw-r--r--internal/service/commit/raw_blame.go2
-rw-r--r--internal/service/commit/raw_blame_test.go2
-rw-r--r--internal/service/commit/server.go2
-rw-r--r--internal/service/commit/stats.go2
-rw-r--r--internal/service/commit/stats_test.go2
-rw-r--r--internal/service/commit/testhelper_test.go2
-rw-r--r--internal/service/commit/tree_entries.go2
-rw-r--r--internal/service/commit/tree_entries_helper.go2
-rw-r--r--internal/service/commit/tree_entries_test.go2
-rw-r--r--internal/service/commit/tree_entry.go2
-rw-r--r--internal/service/commit/tree_entry_test.go2
-rw-r--r--internal/service/commit/util.go2
-rw-r--r--internal/service/conflicts/list_conflict_files.go2
-rw-r--r--internal/service/conflicts/list_conflict_files_test.go2
-rw-r--r--internal/service/conflicts/resolve_conflicts.go2
-rw-r--r--internal/service/conflicts/resolve_conflicts_test.go2
-rw-r--r--internal/service/conflicts/server.go2
-rw-r--r--internal/service/conflicts/testhelper_test.go2
-rw-r--r--internal/service/diff/commit.go2
-rw-r--r--internal/service/diff/commit_test.go2
-rw-r--r--internal/service/diff/numstat.go2
-rw-r--r--internal/service/diff/numstat_test.go2
-rw-r--r--internal/service/diff/patch.go2
-rw-r--r--internal/service/diff/patch_test.go2
-rw-r--r--internal/service/diff/raw.go2
-rw-r--r--internal/service/diff/raw_test.go2
-rw-r--r--internal/service/diff/server.go2
-rw-r--r--internal/service/diff/testhelper_test.go2
-rw-r--r--internal/service/namespace/namespace.go2
-rw-r--r--internal/service/namespace/namespace_test.go2
-rw-r--r--internal/service/namespace/server.go2
-rw-r--r--internal/service/namespace/testhelper_test.go2
-rw-r--r--internal/service/objectpool/alternates.go2
-rw-r--r--internal/service/objectpool/alternates_test.go2
-rw-r--r--internal/service/objectpool/create.go2
-rw-r--r--internal/service/objectpool/create_test.go2
-rw-r--r--internal/service/objectpool/fetch_into_object_pool.go2
-rw-r--r--internal/service/objectpool/fetch_into_object_pool_test.go2
-rw-r--r--internal/service/objectpool/link.go2
-rw-r--r--internal/service/objectpool/link_test.go2
-rw-r--r--internal/service/objectpool/reduplicate.go2
-rw-r--r--internal/service/objectpool/reduplicate_test.go2
-rw-r--r--internal/service/objectpool/server.go2
-rw-r--r--internal/service/objectpool/testhelper_test.go2
-rw-r--r--internal/service/operations/apply_patch.go2
-rw-r--r--internal/service/operations/apply_patch_test.go2
-rw-r--r--internal/service/operations/branches.go2
-rw-r--r--internal/service/operations/branches_test.go2
-rw-r--r--internal/service/operations/cherry_pick.go2
-rw-r--r--internal/service/operations/cherry_pick_test.go2
-rw-r--r--internal/service/operations/commit_files.go2
-rw-r--r--internal/service/operations/commit_files_test.go2
-rw-r--r--internal/service/operations/merge.go2
-rw-r--r--internal/service/operations/merge_test.go2
-rw-r--r--internal/service/operations/rebase.go2
-rw-r--r--internal/service/operations/rebase_test.go2
-rw-r--r--internal/service/operations/revert.go2
-rw-r--r--internal/service/operations/revert_test.go2
-rw-r--r--internal/service/operations/server.go2
-rw-r--r--internal/service/operations/squash.go2
-rw-r--r--internal/service/operations/squash_test.go2
-rw-r--r--internal/service/operations/submodules.go2
-rw-r--r--internal/service/operations/submodules_test.go2
-rw-r--r--internal/service/operations/tags.go2
-rw-r--r--internal/service/operations/tags_test.go2
-rw-r--r--internal/service/operations/testhelper_test.go2
-rw-r--r--internal/service/operations/update_branches_test.go2
-rw-r--r--internal/service/operations/utils.go2
-rw-r--r--internal/service/ref/branches.go2
-rw-r--r--internal/service/ref/branches_test.go2
-rw-r--r--internal/service/ref/delete_refs.go2
-rw-r--r--internal/service/ref/delete_refs_test.go2
-rw-r--r--internal/service/ref/list_new_blobs.go2
-rw-r--r--internal/service/ref/list_new_blobs_test.go2
-rw-r--r--internal/service/ref/list_new_commits.go2
-rw-r--r--internal/service/ref/list_new_commits_test.go2
-rw-r--r--internal/service/ref/pack_refs.go2
-rw-r--r--internal/service/ref/pack_refs_test.go2
-rw-r--r--internal/service/ref/refexists.go2
-rw-r--r--internal/service/ref/refexists_test.go2
-rw-r--r--internal/service/ref/refname.go2
-rw-r--r--internal/service/ref/refname_test.go2
-rw-r--r--internal/service/ref/refnames.go2
-rw-r--r--internal/service/ref/refnames_containing.go2
-rw-r--r--internal/service/ref/refs.go2
-rw-r--r--internal/service/ref/refs_test.go2
-rw-r--r--internal/service/ref/remote_branches.go2
-rw-r--r--internal/service/ref/remote_branches_test.go2
-rw-r--r--internal/service/ref/server.go2
-rw-r--r--internal/service/ref/tag_messages.go2
-rw-r--r--internal/service/ref/tag_messages_test.go2
-rw-r--r--internal/service/ref/testhelper_test.go2
-rw-r--r--internal/service/ref/util.go2
-rw-r--r--internal/service/ref/util_test.go2
-rw-r--r--internal/service/register.go2
-rw-r--r--internal/service/remote/fetch_internal_remote.go2
-rw-r--r--internal/service/remote/fetch_internal_remote_test.go2
-rw-r--r--internal/service/remote/find_remote_root_ref.go2
-rw-r--r--internal/service/remote/find_remote_root_ref_test.go2
-rw-r--r--internal/service/remote/remotes.go2
-rw-r--r--internal/service/remote/remotes_test.go2
-rw-r--r--internal/service/remote/server.go2
-rw-r--r--internal/service/remote/testhelper_test.go2
-rw-r--r--internal/service/remote/update_remote_mirror.go2
-rw-r--r--internal/service/remote/update_remote_mirror_test.go2
-rw-r--r--internal/service/repository/apply_gitattributes.go2
-rw-r--r--internal/service/repository/apply_gitattributes_test.go2
-rw-r--r--internal/service/repository/archive.go2
-rw-r--r--internal/service/repository/archive_test.go2
-rw-r--r--internal/service/repository/backup_custom_hooks.go2
-rw-r--r--internal/service/repository/backup_custom_hooks_test.go2
-rw-r--r--internal/service/repository/calculate_checksum.go2
-rw-r--r--internal/service/repository/calculate_checksum_test.go2
-rw-r--r--internal/service/repository/cleanup.go2
-rw-r--r--internal/service/repository/cleanup_test.go2
-rw-r--r--internal/service/repository/clone_from_pool.go2
-rw-r--r--internal/service/repository/clone_from_pool_internal.go2
-rw-r--r--internal/service/repository/clone_from_pool_internal_test.go2
-rw-r--r--internal/service/repository/clone_from_pool_test.go2
-rw-r--r--internal/service/repository/config.go2
-rw-r--r--internal/service/repository/config_test.go2
-rw-r--r--internal/service/repository/create.go2
-rw-r--r--internal/service/repository/create_bundle.go2
-rw-r--r--internal/service/repository/create_bundle_test.go2
-rw-r--r--internal/service/repository/create_from_bundle.go2
-rw-r--r--internal/service/repository/create_from_bundle_test.go2
-rw-r--r--internal/service/repository/create_from_snapshot.go2
-rw-r--r--internal/service/repository/create_from_snapshot_test.go2
-rw-r--r--internal/service/repository/create_from_url.go2
-rw-r--r--internal/service/repository/create_from_url_test.go2
-rw-r--r--internal/service/repository/create_test.go2
-rw-r--r--internal/service/repository/fetch.go2
-rw-r--r--internal/service/repository/fetch_remote.go2
-rw-r--r--internal/service/repository/fetch_remote_test.go2
-rw-r--r--internal/service/repository/fetch_test.go2
-rw-r--r--internal/service/repository/fork.go2
-rw-r--r--internal/service/repository/fork_test.go2
-rw-r--r--internal/service/repository/fsck.go2
-rw-r--r--internal/service/repository/fsck_test.go2
-rw-r--r--internal/service/repository/gc.go2
-rw-r--r--internal/service/repository/gc_test.go2
-rw-r--r--internal/service/repository/info_attributes.go2
-rw-r--r--internal/service/repository/info_attributes_test.go2
-rw-r--r--internal/service/repository/license.go2
-rw-r--r--internal/service/repository/license_test.go2
-rw-r--r--internal/service/repository/merge_base.go2
-rw-r--r--internal/service/repository/merge_base_test.go2
-rw-r--r--internal/service/repository/pre_fetch.go2
-rw-r--r--internal/service/repository/pre_fetch_test.go2
-rw-r--r--internal/service/repository/raw_changes.go2
-rw-r--r--internal/service/repository/raw_changes_test.go2
-rw-r--r--internal/service/repository/rebase_in_progress.go2
-rw-r--r--internal/service/repository/rebase_in_progress_test.go2
-rw-r--r--internal/service/repository/repack.go2
-rw-r--r--internal/service/repository/repack_test.go2
-rw-r--r--internal/service/repository/repository.go2
-rw-r--r--internal/service/repository/repository_test.go2
-rw-r--r--internal/service/repository/restore_custom_hooks.go2
-rw-r--r--internal/service/repository/restore_custom_hooks_test.go2
-rw-r--r--internal/service/repository/search_files.go2
-rw-r--r--internal/service/repository/search_files_test.go2
-rw-r--r--internal/service/repository/server.go2
-rw-r--r--internal/service/repository/size.go2
-rw-r--r--internal/service/repository/size_test.go2
-rw-r--r--internal/service/repository/snapshot.go2
-rw-r--r--internal/service/repository/snapshot_test.go2
-rw-r--r--internal/service/repository/squash_in_progress.go2
-rw-r--r--internal/service/repository/squash_in_progress_test.go2
-rw-r--r--internal/service/repository/testhelper_test.go2
-rw-r--r--internal/service/repository/util.go2
-rw-r--r--internal/service/repository/write_config.go2
-rw-r--r--internal/service/repository/write_config_test.go2
-rw-r--r--internal/service/repository/write_ref.go2
-rw-r--r--internal/service/repository/write_ref_test.go2
-rw-r--r--internal/service/server/info.go2
-rw-r--r--internal/service/server/info_test.go2
-rw-r--r--internal/service/server/server.go2
-rw-r--r--internal/service/smarthttp/inforefs.go2
-rw-r--r--internal/service/smarthttp/inforefs_test.go2
-rw-r--r--internal/service/smarthttp/receive_pack.go2
-rw-r--r--internal/service/smarthttp/receive_pack_test.go2
-rw-r--r--internal/service/smarthttp/server.go2
-rw-r--r--internal/service/smarthttp/testhelper_test.go2
-rw-r--r--internal/service/smarthttp/upload_pack.go2
-rw-r--r--internal/service/smarthttp/upload_pack_test.go2
-rw-r--r--internal/service/ssh/receive_pack.go2
-rw-r--r--internal/service/ssh/receive_pack_test.go2
-rw-r--r--internal/service/ssh/server.go2
-rw-r--r--internal/service/ssh/testhelper_test.go2
-rw-r--r--internal/service/ssh/upload_archive.go2
-rw-r--r--internal/service/ssh/upload_archive_test.go2
-rw-r--r--internal/service/ssh/upload_pack.go2
-rw-r--r--internal/service/ssh/upload_pack_test.go2
-rw-r--r--internal/service/storage/deleteall.go2
-rw-r--r--internal/service/storage/deleteall_test.go2
-rw-r--r--internal/service/storage/listdirectories.go2
-rw-r--r--internal/service/storage/listdirectories_test.go2
-rw-r--r--internal/service/storage/server.go2
-rw-r--r--internal/service/storage/testhelper_test.go2
-rw-r--r--internal/service/wiki/delete_page.go2
-rw-r--r--internal/service/wiki/delete_page_test.go2
-rw-r--r--internal/service/wiki/find_file.go2
-rw-r--r--internal/service/wiki/find_file_test.go2
-rw-r--r--internal/service/wiki/find_page.go2
-rw-r--r--internal/service/wiki/find_page_test.go2
-rw-r--r--internal/service/wiki/formatted_data.go2
-rw-r--r--internal/service/wiki/formatted_data_test.go2
-rw-r--r--internal/service/wiki/get_all_pages.go2
-rw-r--r--internal/service/wiki/get_all_pages_test.go2
-rw-r--r--internal/service/wiki/get_page_versions.go2
-rw-r--r--internal/service/wiki/get_page_versions_test.go2
-rw-r--r--internal/service/wiki/list_pages.go2
-rw-r--r--internal/service/wiki/list_pages_test.go2
-rw-r--r--internal/service/wiki/server.go2
-rw-r--r--internal/service/wiki/testhelper_test.go2
-rw-r--r--internal/service/wiki/update_page.go2
-rw-r--r--internal/service/wiki/update_page_test.go2
-rw-r--r--internal/service/wiki/util.go2
-rw-r--r--internal/service/wiki/write_page.go2
-rw-r--r--internal/service/wiki/write_page_test.go2
-rw-r--r--internal/tempdir/tempdir.go2
-rw-r--r--internal/tempdir/tempdir_test.go2
-rw-r--r--internal/testhelper/testhelper.go2
-rw-r--r--proto/README.md2
-rw-r--r--proto/REVISION1
-rw-r--r--proto/SOURCE1
-rw-r--r--proto/go.mod3
325 files changed, 355 insertions, 378 deletions
diff --git a/NOTICE b/NOTICE
index 5a34cfece..848d69da0 100644
--- a/NOTICE
+++ b/NOTICE
@@ -2831,29 +2831,6 @@ LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/uber/jaeger-lib
See the License for the specific language governing permissions and
limitations under the License.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-LICENSE - gitlab.com/gitlab-org/gitaly/vendor/gitlab.com/gitlab-org/gitaly-proto
-The MIT License (MIT)
-
-Copyright (c) 2016-2017 GitLab B.V.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LICENSE - gitlab.com/gitlab-org/gitaly/vendor/gitlab.com/gitlab-org/labkit
The MIT License (MIT)
diff --git a/_support/gitaly-proto-tagged b/_support/gitaly-proto-tagged
index c7b79ed76..730c3c41e 100755
--- a/_support/gitaly-proto-tagged
+++ b/_support/gitaly-proto-tagged
@@ -1,24 +1,20 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
-require 'json'
+SOURCE = 'gitlab.com/gitlab-org/gitaly-proto'
-PROTO_PACKAGE = 'gitlab.com/gitlab-org/gitaly-proto'.freeze
-
-go_mod_raw = IO.popen(%w[go mod edit -json], &:read)
-abort 'go mod edit failed' unless $?.success?
-
-go_mod = JSON.parse(go_mod_raw)
-
-gitaly_proto = go_mod['Require'].find { |pkg| pkg['Path'] == PROTO_PACKAGE }
-abort 'gitaly-proto not found in go.mod' unless gitaly_proto
+proto_source = File.read('proto/SOURCE').chomp
+if proto_source != SOURCE
+ abort "gitaly-proto must be vendored from #{SOURCE}"
+end
-puts gitaly_proto.to_json
+proto_revision = File.read('proto/REVISION')
# good: v1.2.3
# bad: v1.2.3-2019234234-a35478eff90
-if gitaly_proto['Version'] =~ /^v[0-9.]+$/
+if proto_revision =~ /^v[0-9.]+$/
puts 'OK'
exit
end
-abort 'error: no tagged version of gitaly-proto found in go.mod'
+abort 'error: no tagged version of gitaly-proto found in proto/'
diff --git a/_support/makegen.go b/_support/makegen.go
index f8774e2d5..154106403 100644
--- a/_support/makegen.go
+++ b/_support/makegen.go
@@ -457,7 +457,7 @@ rspec-gitlab-shell: {{ .GitlabShellDir }}/config.yml assemble-go prepare-tests
@cd {{ .GitalyRubyDir }} && bundle exec bin/ruby-cd {{ .GitlabShellDir }} rspec
.PHONY: verify
-verify: check-mod-tidy lint check-formatting staticcheck notice-up-to-date govendor-tagged rubocop
+verify: check-mod-tidy lint check-formatting staticcheck notice-up-to-date check-proto rubocop
.PHONY: check-mod-tidy
check-mod-tidy:
@@ -517,9 +517,9 @@ notice-tmp: {{ .GoVendor }} clean-ruby-vendor-go
clean-ruby-vendor-go:
cd {{ .SourceDir }} && mkdir -p ruby/vendor && find ruby/vendor -type f -name '*.go' -delete
-.PHONY: govendor-tagged
-govendor-tagged: {{ .GoVendor }}
- # govendor-tagged
+.PHONY: check-proto
+check-proto: proto no-changes
+ # checking gitaly-proto revision
@cd {{ .SourceDir }} && _support/gitaly-proto-tagged
.PHONY: rubocop
diff --git a/_support/migrate-proto b/_support/migrate-proto
index 132287271..1a828b35e 100755
--- a/_support/migrate-proto
+++ b/_support/migrate-proto
@@ -5,25 +5,23 @@ require_relative 'run.rb'
require 'tempfile'
-SOURCE = 'https://gitlab.com/gitlab-org/gitaly-proto'
-
-def main
+def main(source, revision)
root = capture!(%w[git rev-parse --show-toplevel]).chomp
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
- clone
- modify
+ clone(source, revision)
+ modify(source, revision)
copy(root)
end
end
end
-def clone
- run!(%W[git clone --quiet --depth=1 #{SOURCE}.git .])
+def clone(source, revision)
+ run!(%W[git clone --quiet --depth=1 -b #{revision} https://#{source}.git .])
end
-def modify
+def modify(source, revision)
Dir['*.proto'].each do |proto|
tmp = proto + '.bak'
run2!(%W[sed s/gitlab-org\\/gitaly-proto/gitlab-org\\/gitaly\\/proto/ #{proto}], out: tmp)
@@ -36,20 +34,27 @@ def modify
readme = <<EOS
# Vendored copy of gitaly-proto
-Vendored from #{SOURCE} at #{commit_id}.
+Vendored from #{source} at #{commit_id}.
Migration in progress, see
https://gitlab.com/gitlab-org/gitaly/issues/1761. Do not edit files in
this directory, your changes will be ignored and overwritten.
EOS
- IO.write('README.md', readme)
+ File.open('README.md', 'w') { |f| f.write(readme) }
+
+ File.open('REVISION', 'w') { |f| f.write(revision) }
+ File.open('SOURCE', 'w') { |f| f.write(source) }
end
def copy(root)
dest = File.join(root, 'proto')
FileUtils.rm(Dir["#{dest}/*.proto"])
- file_list = Dir['*.proto'] + Dir['*.md'] + %w[VERSION]
+ file_list = Dir['*.proto'] + Dir['*.md'] + %w[VERSION REVISION SOURCE]
FileUtils.cp(file_list, dest)
end
-main
+unless ARGV.count == 2
+ abort "Usage: #{$0} SOURCE REVISION"
+end
+
+main(*ARGV)
diff --git a/_support/vendor-gitaly-proto b/_support/vendor-gitaly-proto
index bb1684a01..cdc2aa300 100755
--- a/_support/vendor-gitaly-proto
+++ b/_support/vendor-gitaly-proto
@@ -7,14 +7,8 @@ USAGE = "Usage: #{PROGNAME} [--fork GITALY_PROTO_FORK_REPO] REVISION"
ORIGIN = 'gitlab.com/gitlab-org/gitaly-proto'
def main(revision, repo:)
- if repo == ORIGIN
- run!(%W[go mod edit -dropreplace=#{ORIGIN}])
- run!(%W[go get #{ORIGIN}@#{revision}])
- else
- run!(%W[go mod edit -replace=#{ORIGIN}=#{repo}@#{revision}])
- end
-
- run!(%w[go mod tidy])
+ run!(%W[_support/migrate-proto #{repo} #{revision}])
+ run!(%w[make proto])
end
options = ARGV.getopts(nil, 'fork:')
diff --git a/client/receive_pack.go b/client/receive_pack.go
index afa972522..0a92a8321 100644
--- a/client/receive_pack.go
+++ b/client/receive_pack.go
@@ -4,7 +4,7 @@ import (
"context"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc"
)
diff --git a/client/std_stream.go b/client/std_stream.go
index 157aef4a6..cf0d5e96e 100644
--- a/client/std_stream.go
+++ b/client/std_stream.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type stdoutStderrResponse interface {
diff --git a/client/upload_archive.go b/client/upload_archive.go
index b361b3d85..3dd5dc05c 100644
--- a/client/upload_archive.go
+++ b/client/upload_archive.go
@@ -4,7 +4,7 @@ import (
"context"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc"
)
diff --git a/client/upload_pack.go b/client/upload_pack.go
index 781eddbb7..dcd48b6b1 100644
--- a/client/upload_pack.go
+++ b/client/upload_pack.go
@@ -4,7 +4,7 @@ import (
"context"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc"
)
diff --git a/cmd/gitaly-ssh/auth_test.go b/cmd/gitaly-ssh/auth_test.go
index a425861f2..365acc213 100644
--- a/cmd/gitaly-ssh/auth_test.go
+++ b/cmd/gitaly-ssh/auth_test.go
@@ -12,11 +12,11 @@ import (
"github.com/golang/protobuf/jsonpb"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/server"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/cmd/gitaly-ssh/receive_pack.go b/cmd/gitaly-ssh/receive_pack.go
index 910eb7628..97ffee280 100644
--- a/cmd/gitaly-ssh/receive_pack.go
+++ b/cmd/gitaly-ssh/receive_pack.go
@@ -6,8 +6,8 @@ import (
"os"
"github.com/golang/protobuf/jsonpb"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/client"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/cmd/gitaly-ssh/upload_archive.go b/cmd/gitaly-ssh/upload_archive.go
index 104227d36..a9c32f30d 100644
--- a/cmd/gitaly-ssh/upload_archive.go
+++ b/cmd/gitaly-ssh/upload_archive.go
@@ -6,8 +6,8 @@ import (
"os"
"github.com/golang/protobuf/jsonpb"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/client"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/cmd/gitaly-ssh/upload_pack.go b/cmd/gitaly-ssh/upload_pack.go
index 98c688758..c6fbf4b89 100644
--- a/cmd/gitaly-ssh/upload_pack.go
+++ b/cmd/gitaly-ssh/upload_pack.go
@@ -6,8 +6,8 @@ import (
"os"
"github.com/golang/protobuf/jsonpb"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/client"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/go.mod b/go.mod
index a8b29a4a1..5c16598c6 100644
--- a/go.mod
+++ b/go.mod
@@ -15,7 +15,7 @@ require (
github.com/sirupsen/logrus v1.2.0
github.com/stretchr/testify v1.3.0
github.com/tinylib/msgp v1.1.0 // indirect
- gitlab.com/gitlab-org/gitaly-proto v1.37.0
+ gitlab.com/gitlab-org/gitaly/proto v0.0.0-00010101000000-000000000000
gitlab.com/gitlab-org/labkit v0.0.0-20190221122536-0c3fc7cdd57c
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 // indirect
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980
@@ -26,3 +26,5 @@ require (
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
)
+
+replace gitlab.com/gitlab-org/gitaly/proto => ./proto
diff --git a/go.sum b/go.sum
index d97d828f7..9bce6f095 100644
--- a/go.sum
+++ b/go.sum
@@ -108,8 +108,6 @@ github.com/uber/jaeger-client-go v2.15.0+incompatible h1:NP3qsSqNxh8VYr956ur1N/1
github.com/uber/jaeger-client-go v2.15.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
github.com/uber/jaeger-lib v1.5.0 h1:OHbgr8l656Ub3Fw5k9SWnBfIEwvoHQ+W2y+Aa9D1Uyo=
github.com/uber/jaeger-lib v1.5.0/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
-gitlab.com/gitlab-org/gitaly-proto v1.37.0 h1:cRQXF3kW+AR1eLIYTWfb+Eqa+Wd0PIcTq4FkaSCWvK4=
-gitlab.com/gitlab-org/gitaly-proto v1.37.0/go.mod h1:zNjk/86bjwLVJ4NcvInBcXcLdptdRFQ28sYrdFbrFgY=
gitlab.com/gitlab-org/labkit v0.0.0-20190221122536-0c3fc7cdd57c h1:xo48LcGsTCasKcJpQDBCCuZU+aP8uGaboUVvD7Lgm6g=
gitlab.com/gitlab-org/labkit v0.0.0-20190221122536-0c3fc7cdd57c/go.mod h1:rYhLgfrbEcyfinG+R3EvKu6bZSsmwQqcXzLfHWSfUKM=
go.uber.org/atomic v1.3.2 h1:2Oa65PReHzfn29GpvgsYwloV9AVFHPDk8tYxt2c2tr4=
diff --git a/internal/cache/cachedb.go b/internal/cache/cachedb.go
index 787137233..82546f5ce 100644
--- a/internal/cache/cachedb.go
+++ b/internal/cache/cachedb.go
@@ -8,8 +8,8 @@ import (
"path/filepath"
"github.com/golang/protobuf/proto"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/safe"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// StreamDB stores and retrieves byte streams for repository related RPCs
diff --git a/internal/cache/cachedb_test.go b/internal/cache/cachedb_test.go
index fad20f663..71e29f01c 100644
--- a/internal/cache/cachedb_test.go
+++ b/internal/cache/cachedb_test.go
@@ -8,9 +8,9 @@ import (
"time"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/cache"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
)
diff --git a/internal/cache/keyer.go b/internal/cache/keyer.go
index da9b53b7d..20acbd414 100644
--- a/internal/cache/keyer.go
+++ b/internal/cache/keyer.go
@@ -13,11 +13,11 @@ import (
"github.com/golang/protobuf/proto"
"github.com/google/uuid"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/safe"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
"gitlab.com/gitlab-org/gitaly/internal/version"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/internal/git/catfile/catfile.go b/internal/git/catfile/catfile.go
index 8e282db25..1b29ec4af 100644
--- a/internal/git/catfile/catfile.go
+++ b/internal/git/catfile/catfile.go
@@ -6,9 +6,9 @@ import (
"sync"
"github.com/prometheus/client_golang/prometheus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/alternates"
"gitlab.com/gitlab-org/gitaly/internal/metadata"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
var catfileCacheCounter = prometheus.NewCounterVec(
diff --git a/internal/git/log/commit.go b/internal/git/log/commit.go
index 05eef3c5e..e0b7d30db 100644
--- a/internal/git/log/commit.go
+++ b/internal/git/log/commit.go
@@ -10,10 +10,10 @@ import (
"strings"
"github.com/golang/protobuf/ptypes/timestamp"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// GetCommit tries to resolve revision to a Git commit. Returns nil if
diff --git a/internal/git/log/commit_test.go b/internal/git/log/commit_test.go
index 7a73b7282..fe0ea3afa 100644
--- a/internal/git/log/commit_test.go
+++ b/internal/git/log/commit_test.go
@@ -6,8 +6,8 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestParseRawCommit(t *testing.T) {
diff --git a/internal/git/log/last_commit.go b/internal/git/log/last_commit.go
index 7bd6af470..0d9c4ca8b 100644
--- a/internal/git/log/last_commit.go
+++ b/internal/git/log/last_commit.go
@@ -6,11 +6,11 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// LastCommitForPath returns the last commit which modified path.
diff --git a/internal/git/log/log.go b/internal/git/log/log.go
index 8381be20d..c591f36bf 100644
--- a/internal/git/log/log.go
+++ b/internal/git/log/log.go
@@ -6,8 +6,8 @@ import (
"fmt"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// IsNotFound tests if an error is a "not found" error.
diff --git a/internal/git/log/tag.go b/internal/git/log/tag.go
index a9b9cbbcb..fca94292d 100644
--- a/internal/git/log/tag.go
+++ b/internal/git/log/tag.go
@@ -8,9 +8,9 @@ import (
"io/ioutil"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const (
diff --git a/internal/git/objectpool/clone.go b/internal/git/objectpool/clone.go
index 41110756f..f7359e636 100644
--- a/internal/git/objectpool/clone.go
+++ b/internal/git/objectpool/clone.go
@@ -5,9 +5,9 @@ import (
"os"
"path"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// Clone a repository to a pool, without setting the alternates, is not the
diff --git a/internal/git/objectpool/fetch.go b/internal/git/objectpool/fetch.go
index b173e02b8..710392b43 100644
--- a/internal/git/objectpool/fetch.go
+++ b/internal/git/objectpool/fetch.go
@@ -6,12 +6,12 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/repository"
"gitlab.com/gitlab-org/gitaly/internal/git/updateref"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const (
diff --git a/internal/git/objectpool/link.go b/internal/git/objectpool/link.go
index 0bc9e75e0..cef02a84e 100644
--- a/internal/git/objectpool/link.go
+++ b/internal/git/objectpool/link.go
@@ -15,9 +15,9 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/git/repository"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// Link will write the relative path to the object pool from the repository that
diff --git a/internal/git/objectpool/pool.go b/internal/git/objectpool/pool.go
index 699903cbf..4a44bf6bc 100644
--- a/internal/git/objectpool/pool.go
+++ b/internal/git/objectpool/pool.go
@@ -6,9 +6,9 @@ import (
"os"
"path"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// ObjectPool are a way to dedup objects between repositories, where the objects
diff --git a/internal/git/objectpool/proto.go b/internal/git/objectpool/proto.go
index 0da62cb81..19417485e 100644
--- a/internal/git/objectpool/proto.go
+++ b/internal/git/objectpool/proto.go
@@ -1,6 +1,6 @@
package objectpool
-import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+import "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
// FromProto returns an object pool object from a git repository object
func FromProto(o *gitalypb.ObjectPool) (*ObjectPool, error) {
diff --git a/internal/git/ref.go b/internal/git/ref.go
index 2b45a619e..e8f80c68a 100644
--- a/internal/git/ref.go
+++ b/internal/git/ref.go
@@ -3,7 +3,7 @@ package git
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// IsValidRef checks if a ref in a repo is valid
diff --git a/internal/git/updateref/updateref_test.go b/internal/git/updateref/updateref_test.go
index 60cecee92..f89f590ca 100644
--- a/internal/git/updateref/updateref_test.go
+++ b/internal/git/updateref/updateref_test.go
@@ -7,7 +7,7 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
diff --git a/internal/helper/fieldextractors/fieldextractor.go b/internal/helper/fieldextractors/fieldextractor.go
index aa32804e0..82c889ebe 100644
--- a/internal/helper/fieldextractors/fieldextractor.go
+++ b/internal/helper/fieldextractors/fieldextractor.go
@@ -3,7 +3,7 @@ package fieldextractors
import (
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type repositoryBasedRequest interface {
diff --git a/internal/helper/repo_test.go b/internal/helper/repo_test.go
index 58a200423..c6e9c921b 100644
--- a/internal/helper/repo_test.go
+++ b/internal/helper/repo_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/middleware/cache/cache.go b/internal/middleware/cache/cache.go
index af0dd38e5..e39806c7d 100644
--- a/internal/middleware/cache/cache.go
+++ b/internal/middleware/cache/cache.go
@@ -8,9 +8,9 @@ import (
"github.com/golang/protobuf/proto"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
diskcache "gitlab.com/gitlab-org/gitaly/internal/cache"
"gitlab.com/gitlab-org/gitaly/internal/praefect/protoregistry"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/internal/middleware/cache/cache_test.go b/internal/middleware/cache/cache_test.go
index 332c9316a..dd5a1a927 100644
--- a/internal/middleware/cache/cache_test.go
+++ b/internal/middleware/cache/cache_test.go
@@ -12,11 +12,11 @@ import (
"github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
diskcache "gitlab.com/gitlab-org/gitaly/internal/cache"
"gitlab.com/gitlab-org/gitaly/internal/middleware/cache"
"gitlab.com/gitlab-org/gitaly/internal/middleware/cache/testdata"
"gitlab.com/gitlab-org/gitaly/internal/praefect/protoregistry"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
)
diff --git a/internal/middleware/cache/testdata/stream.pb.go b/internal/middleware/cache/testdata/stream.pb.go
index f7e052bc6..0deb42622 100644
--- a/internal/middleware/cache/testdata/stream.pb.go
+++ b/internal/middleware/cache/testdata/stream.pb.go
@@ -7,7 +7,7 @@ import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
- gitalypb "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ gitalypb "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
grpc "google.golang.org/grpc"
math "math"
)
diff --git a/internal/praefect/protoregistry/protoregistry.go b/internal/praefect/protoregistry/protoregistry.go
index 909b2e2b2..811b56140 100644
--- a/internal/praefect/protoregistry/protoregistry.go
+++ b/internal/praefect/protoregistry/protoregistry.go
@@ -13,7 +13,7 @@ import (
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/protoc-gen-go/descriptor"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// GitalyProtoFileDescriptors is a slice of all gitaly registered file descriptors
diff --git a/internal/praefect/protoregistry/protoregistry_test.go b/internal/praefect/protoregistry/protoregistry_test.go
index 42671b5a8..ff8480b3b 100644
--- a/internal/praefect/protoregistry/protoregistry_test.go
+++ b/internal/praefect/protoregistry/protoregistry_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/praefect/protoregistry"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestPopulatesProtoRegistry(t *testing.T) {
diff --git a/internal/praefect/protoregistry/targetrepo.go b/internal/praefect/protoregistry/targetrepo.go
index 9af538f9c..16afe395c 100644
--- a/internal/praefect/protoregistry/targetrepo.go
+++ b/internal/praefect/protoregistry/targetrepo.go
@@ -7,7 +7,7 @@ import (
"strconv"
"github.com/golang/protobuf/proto"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const (
diff --git a/internal/praefect/protoregistry/targetrepo_test.go b/internal/praefect/protoregistry/targetrepo_test.go
index 66b39e2cc..8d6629524 100644
--- a/internal/praefect/protoregistry/targetrepo_test.go
+++ b/internal/praefect/protoregistry/targetrepo_test.go
@@ -7,8 +7,8 @@ import (
"github.com/golang/protobuf/proto"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/praefect/protoregistry"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestProtoRegistryTargetRepo(t *testing.T) {
diff --git a/internal/praefect/replicator.go b/internal/praefect/replicator.go
index d3244619d..c56f0488c 100644
--- a/internal/praefect/replicator.go
+++ b/internal/praefect/replicator.go
@@ -5,9 +5,9 @@ import (
"fmt"
"time"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/praefect/models"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"github.com/sirupsen/logrus"
)
diff --git a/internal/rubyserver/proxy.go b/internal/rubyserver/proxy.go
index 98fe4bc2f..7535ab681 100644
--- a/internal/rubyserver/proxy.go
+++ b/internal/rubyserver/proxy.go
@@ -6,8 +6,8 @@ import (
"os"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/metadata"
)
diff --git a/internal/rubyserver/rubyserver.go b/internal/rubyserver/rubyserver.go
index 475c6a087..4b031762a 100644
--- a/internal/rubyserver/rubyserver.go
+++ b/internal/rubyserver/rubyserver.go
@@ -15,7 +15,6 @@ import (
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
@@ -24,6 +23,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/rubyserver/balancer"
"gitlab.com/gitlab-org/gitaly/internal/supervisor"
"gitlab.com/gitlab-org/gitaly/internal/version"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
grpccorrelation "gitlab.com/gitlab-org/labkit/correlation/grpc"
grpctracing "gitlab.com/gitlab-org/labkit/tracing/grpc"
diff --git a/internal/rubyserver/rubyserver_test.go b/internal/rubyserver/rubyserver_test.go
index 68eddd548..be3cbd477 100644
--- a/internal/rubyserver/rubyserver_test.go
+++ b/internal/rubyserver/rubyserver_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/rubyserver/testhelper_test.go b/internal/rubyserver/testhelper_test.go
index 2f3b2886a..ccb817900 100644
--- a/internal/rubyserver/testhelper_test.go
+++ b/internal/rubyserver/testhelper_test.go
@@ -4,8 +4,8 @@ import (
"os"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
var (
diff --git a/internal/service/blob/get_blob.go b/internal/service/blob/get_blob.go
index 0069ec778..fac456a5e 100644
--- a/internal/service/blob/get_blob.go
+++ b/internal/service/blob/get_blob.go
@@ -4,9 +4,9 @@ import (
"fmt"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/blob/get_blob_test.go b/internal/service/blob/get_blob_test.go
index 4f5bb7a37..728a1b247 100644
--- a/internal/service/blob/get_blob_test.go
+++ b/internal/service/blob/get_blob_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/blob/get_blobs.go b/internal/service/blob/get_blobs.go
index f0fad5a81..1388609d6 100644
--- a/internal/service/blob/get_blobs.go
+++ b/internal/service/blob/get_blobs.go
@@ -4,9 +4,9 @@ import (
"io"
"io/ioutil"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/service/commit"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/blob/get_blobs_test.go b/internal/service/blob/get_blobs_test.go
index 85b0ca23d..b7fd6b9fa 100644
--- a/internal/service/blob/get_blobs_test.go
+++ b/internal/service/blob/get_blobs_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/blob/lfs_pointers.go b/internal/service/blob/lfs_pointers.go
index e83fe3504..d84948687 100644
--- a/internal/service/blob/lfs_pointers.go
+++ b/internal/service/blob/lfs_pointers.go
@@ -3,9 +3,9 @@ package blob
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/blob/lfs_pointers_test.go b/internal/service/blob/lfs_pointers_test.go
index 3f4f7c377..0c184f922 100644
--- a/internal/service/blob/lfs_pointers_test.go
+++ b/internal/service/blob/lfs_pointers_test.go
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/blob/server.go b/internal/service/blob/server.go
index 52b04e3ac..d55414ba4 100644
--- a/internal/service/blob/server.go
+++ b/internal/service/blob/server.go
@@ -1,8 +1,8 @@
package blob
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/blob/testhelper_test.go b/internal/service/blob/testhelper_test.go
index 95cc08caf..9bb24a1ef 100644
--- a/internal/service/blob/testhelper_test.go
+++ b/internal/service/blob/testhelper_test.go
@@ -6,9 +6,9 @@ import (
"os"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/cleanup/apply_bfg_object_map.go b/internal/service/cleanup/apply_bfg_object_map.go
index 37093e40e..35b7aabe7 100644
--- a/internal/service/cleanup/apply_bfg_object_map.go
+++ b/internal/service/cleanup/apply_bfg_object_map.go
@@ -1,7 +1,7 @@
package cleanup
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/cleanup/apply_bfg_object_map_stream.go b/internal/service/cleanup/apply_bfg_object_map_stream.go
index 594a509a0..b7a07fa9a 100644
--- a/internal/service/cleanup/apply_bfg_object_map_stream.go
+++ b/internal/service/cleanup/apply_bfg_object_map_stream.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
diff --git a/internal/service/cleanup/apply_bfg_object_map_stream_test.go b/internal/service/cleanup/apply_bfg_object_map_stream_test.go
index e4c916330..e226978ea 100644
--- a/internal/service/cleanup/apply_bfg_object_map_stream_test.go
+++ b/internal/service/cleanup/apply_bfg_object_map_stream_test.go
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"gitlab.com/gitlab-org/gitaly/internal/git"
diff --git a/internal/service/cleanup/apply_bfg_object_map_test.go b/internal/service/cleanup/apply_bfg_object_map_test.go
index 9d1e087ff..ec6bb2705 100644
--- a/internal/service/cleanup/apply_bfg_object_map_test.go
+++ b/internal/service/cleanup/apply_bfg_object_map_test.go
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
diff --git a/internal/service/cleanup/internalrefs/cleaner.go b/internal/service/cleanup/internalrefs/cleaner.go
index 80943d7cb..dc803db34 100644
--- a/internal/service/cleanup/internalrefs/cleaner.go
+++ b/internal/service/cleanup/internalrefs/cleaner.go
@@ -9,7 +9,7 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/updateref"
diff --git a/internal/service/cleanup/notifier/notifier.go b/internal/service/cleanup/notifier/notifier.go
index e73317eef..631d14ad9 100644
--- a/internal/service/cleanup/notifier/notifier.go
+++ b/internal/service/cleanup/notifier/notifier.go
@@ -6,7 +6,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// Notifier sends messages stating that an OID has been rewritten, looking
diff --git a/internal/service/cleanup/server.go b/internal/service/cleanup/server.go
index b1bd4e0f5..d5642c79a 100644
--- a/internal/service/cleanup/server.go
+++ b/internal/service/cleanup/server.go
@@ -3,8 +3,8 @@ package cleanup
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct{}
diff --git a/internal/service/cleanup/testhelper_test.go b/internal/service/cleanup/testhelper_test.go
index a43a304f1..ed4d2ec57 100644
--- a/internal/service/cleanup/testhelper_test.go
+++ b/internal/service/cleanup/testhelper_test.go
@@ -4,7 +4,7 @@ import (
"net"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
diff --git a/internal/service/commit/between.go b/internal/service/commit/between.go
index f6cfa34f5..b6cc18dec 100644
--- a/internal/service/commit/between.go
+++ b/internal/service/commit/between.go
@@ -3,10 +3,10 @@ package commit
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type commitsBetweenSender struct {
diff --git a/internal/service/commit/between_test.go b/internal/service/commit/between_test.go
index 00187a32f..cc4d14c64 100644
--- a/internal/service/commit/between_test.go
+++ b/internal/service/commit/between_test.go
@@ -7,8 +7,8 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/commit_messages.go b/internal/service/commit/commit_messages.go
index b37a9545d..279626687 100644
--- a/internal/service/commit/commit_messages.go
+++ b/internal/service/commit/commit_messages.go
@@ -5,10 +5,10 @@ import (
"fmt"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/commit/commit_messages_test.go b/internal/service/commit/commit_messages_test.go
index 48bda1007..7d6b97e0c 100644
--- a/internal/service/commit/commit_messages_test.go
+++ b/internal/service/commit/commit_messages_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/commit_signatures.go b/internal/service/commit/commit_signatures.go
index d6982a7af..e60d1b692 100644
--- a/internal/service/commit/commit_signatures.go
+++ b/internal/service/commit/commit_signatures.go
@@ -3,8 +3,8 @@ package commit
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/commit/commit_signatures_test.go b/internal/service/commit/commit_signatures_test.go
index 69640cda5..365f7050a 100644
--- a/internal/service/commit/commit_signatures_test.go
+++ b/internal/service/commit/commit_signatures_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/commits_by_message.go b/internal/service/commit/commits_by_message.go
index 87ca6622f..1b4d3b87f 100644
--- a/internal/service/commit/commits_by_message.go
+++ b/internal/service/commit/commits_by_message.go
@@ -3,9 +3,9 @@ package commit
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type commitsByMessageSender struct {
diff --git a/internal/service/commit/commits_by_message_test.go b/internal/service/commit/commits_by_message_test.go
index 1801eb1cf..e9a7f17c2 100644
--- a/internal/service/commit/commits_by_message_test.go
+++ b/internal/service/commit/commits_by_message_test.go
@@ -7,8 +7,8 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/commits_helper.go b/internal/service/commit/commits_helper.go
index ba079dff7..a1ac32cc5 100644
--- a/internal/service/commit/commits_helper.go
+++ b/internal/service/commit/commits_helper.go
@@ -4,9 +4,9 @@ import (
"context"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func sendCommits(ctx context.Context, sender chunk.Sender, repo *gitalypb.Repository, revisionRange []string, paths []string, extraArgs ...string) error {
diff --git a/internal/service/commit/count_commits.go b/internal/service/commit/count_commits.go
index 55d82d83e..f96f0dca5 100644
--- a/internal/service/commit/count_commits.go
+++ b/internal/service/commit/count_commits.go
@@ -9,8 +9,8 @@ import (
"time"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/commit/count_commits_test.go b/internal/service/commit/count_commits_test.go
index 8c41f0755..f3ad92740 100644
--- a/internal/service/commit/count_commits_test.go
+++ b/internal/service/commit/count_commits_test.go
@@ -8,8 +8,8 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/count_diverging_commits.go b/internal/service/commit/count_diverging_commits.go
index 729f9561d..102ef2b68 100644
--- a/internal/service/commit/count_diverging_commits.go
+++ b/internal/service/commit/count_diverging_commits.go
@@ -10,8 +10,8 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/helper"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// CountDivergingCommits counts the diverging commits between from and to. Important to note that when --max-count is applied, the counts are not guaranteed to be
diff --git a/internal/service/commit/count_diverging_commits_test.go b/internal/service/commit/count_diverging_commits_test.go
index 0ede3ff22..0343b52a2 100644
--- a/internal/service/commit/count_diverging_commits_test.go
+++ b/internal/service/commit/count_diverging_commits_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
diff --git a/internal/service/commit/extractsignature.go b/internal/service/commit/extractsignature.go
index 572331f1a..82f2fb753 100644
--- a/internal/service/commit/extractsignature.go
+++ b/internal/service/commit/extractsignature.go
@@ -1,8 +1,8 @@
package commit
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) ExtractCommitSignature(request *gitalypb.ExtractCommitSignatureRequest, stream gitalypb.CommitService_ExtractCommitSignatureServer) error {
diff --git a/internal/service/commit/extractsignature_test.go b/internal/service/commit/extractsignature_test.go
index 049178a7c..76d90940c 100644
--- a/internal/service/commit/extractsignature_test.go
+++ b/internal/service/commit/extractsignature_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/filter_shas_with_signatures.go b/internal/service/commit/filter_shas_with_signatures.go
index 6e879169b..f61c5339d 100644
--- a/internal/service/commit/filter_shas_with_signatures.go
+++ b/internal/service/commit/filter_shas_with_signatures.go
@@ -1,8 +1,8 @@
package commit
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/commit/filter_shas_with_signatures_test.go b/internal/service/commit/filter_shas_with_signatures_test.go
index 3a4b6cc16..0bd5e9822 100644
--- a/internal/service/commit/filter_shas_with_signatures_test.go
+++ b/internal/service/commit/filter_shas_with_signatures_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/find_all_commits.go b/internal/service/commit/find_all_commits.go
index 84b0639f7..5116dff30 100644
--- a/internal/service/commit/find_all_commits.go
+++ b/internal/service/commit/find_all_commits.go
@@ -3,10 +3,10 @@ package commit
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
"gitlab.com/gitlab-org/gitaly/internal/service/ref"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// We declare this function in variables so that we can override them in our tests
diff --git a/internal/service/commit/find_all_commits_test.go b/internal/service/commit/find_all_commits_test.go
index 95a8082f1..7b1f6d028 100644
--- a/internal/service/commit/find_all_commits_test.go
+++ b/internal/service/commit/find_all_commits_test.go
@@ -7,9 +7,9 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/service/ref"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/find_commit.go b/internal/service/commit/find_commit.go
index dd67becda..31f31e935 100644
--- a/internal/service/commit/find_commit.go
+++ b/internal/service/commit/find_commit.go
@@ -5,9 +5,9 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/helper"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) FindCommit(ctx context.Context, in *gitalypb.FindCommitRequest) (*gitalypb.FindCommitResponse, error) {
diff --git a/internal/service/commit/find_commit_test.go b/internal/service/commit/find_commit_test.go
index 7be44bc00..e13c149b9 100644
--- a/internal/service/commit/find_commit_test.go
+++ b/internal/service/commit/find_commit_test.go
@@ -9,12 +9,12 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
diff --git a/internal/service/commit/find_commits.go b/internal/service/commit/find_commits.go
index 489f11240..e5d49a5ad 100644
--- a/internal/service/commit/find_commits.go
+++ b/internal/service/commit/find_commits.go
@@ -7,13 +7,13 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const commitsPerPage int = 20
diff --git a/internal/service/commit/find_commits_test.go b/internal/service/commit/find_commits_test.go
index f7b7803f1..8e1dc4944 100644
--- a/internal/service/commit/find_commits_test.go
+++ b/internal/service/commit/find_commits_test.go
@@ -11,8 +11,8 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/isancestor.go b/internal/service/commit/isancestor.go
index e6d35a11c..e1eaed4e0 100644
--- a/internal/service/commit/isancestor.go
+++ b/internal/service/commit/isancestor.go
@@ -5,8 +5,8 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/commit/isancestor_test.go b/internal/service/commit/isancestor_test.go
index 99ff46d47..b1d22eae9 100644
--- a/internal/service/commit/isancestor_test.go
+++ b/internal/service/commit/isancestor_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/languages.go b/internal/service/commit/languages.go
index 73ef24d6e..63a104b2d 100644
--- a/internal/service/commit/languages.go
+++ b/internal/service/commit/languages.go
@@ -5,12 +5,12 @@ import (
"io/ioutil"
"sort"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/linguist"
"gitlab.com/gitlab-org/gitaly/internal/service/ref"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/commit/languages_test.go b/internal/service/commit/languages_test.go
index 2d82a7712..a9faeae28 100644
--- a/internal/service/commit/languages_test.go
+++ b/internal/service/commit/languages_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestLanguages(t *testing.T) {
diff --git a/internal/service/commit/last_commit_for_path.go b/internal/service/commit/last_commit_for_path.go
index d5d1c4d3a..60e3c3c7e 100644
--- a/internal/service/commit/last_commit_for_path.go
+++ b/internal/service/commit/last_commit_for_path.go
@@ -4,10 +4,10 @@ import (
"context"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) LastCommitForPath(ctx context.Context, in *gitalypb.LastCommitForPathRequest) (*gitalypb.LastCommitForPathResponse, error) {
diff --git a/internal/service/commit/last_commit_for_path_test.go b/internal/service/commit/last_commit_for_path_test.go
index 3552fc701..24c5c70a5 100644
--- a/internal/service/commit/last_commit_for_path_test.go
+++ b/internal/service/commit/last_commit_for_path_test.go
@@ -6,8 +6,8 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/list_commits_by_oid.go b/internal/service/commit/list_commits_by_oid.go
index 6d7361419..c64e88792 100644
--- a/internal/service/commit/list_commits_by_oid.go
+++ b/internal/service/commit/list_commits_by_oid.go
@@ -1,10 +1,10 @@
package commit
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) ListCommitsByOid(in *gitalypb.ListCommitsByOidRequest, stream gitalypb.CommitService_ListCommitsByOidServer) error {
diff --git a/internal/service/commit/list_commits_by_oid_test.go b/internal/service/commit/list_commits_by_oid_test.go
index af2edd962..7b3435350 100644
--- a/internal/service/commit/list_commits_by_oid_test.go
+++ b/internal/service/commit/list_commits_by_oid_test.go
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestSuccessfulListCommitsByOidRequest(t *testing.T) {
diff --git a/internal/service/commit/list_commits_by_ref_name.go b/internal/service/commit/list_commits_by_ref_name.go
index f8a79fd03..baf281214 100644
--- a/internal/service/commit/list_commits_by_ref_name.go
+++ b/internal/service/commit/list_commits_by_ref_name.go
@@ -1,11 +1,11 @@
package commit
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) ListCommitsByRefName(in *gitalypb.ListCommitsByRefNameRequest, stream gitalypb.CommitService_ListCommitsByRefNameServer) error {
diff --git a/internal/service/commit/list_commits_by_ref_name_test.go b/internal/service/commit/list_commits_by_ref_name_test.go
index b8161bc99..a0a2d3969 100644
--- a/internal/service/commit/list_commits_by_ref_name_test.go
+++ b/internal/service/commit/list_commits_by_ref_name_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestSuccessfulListCommitsByRefNameRequest(t *testing.T) {
diff --git a/internal/service/commit/list_files.go b/internal/service/commit/list_files.go
index bab30138c..615ab1534 100644
--- a/internal/service/commit/list_files.go
+++ b/internal/service/commit/list_files.go
@@ -6,11 +6,11 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/lstree"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/list_files_test.go b/internal/service/commit/list_files_test.go
index c2a702368..a3d4132c9 100644
--- a/internal/service/commit/list_files_test.go
+++ b/internal/service/commit/list_files_test.go
@@ -7,9 +7,9 @@ import (
"io"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/service/ref"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/list_last_commits_for_tree.go b/internal/service/commit/list_last_commits_for_tree.go
index 7b2741c4d..ada4b2915 100644
--- a/internal/service/commit/list_last_commits_for_tree.go
+++ b/internal/service/commit/list_last_commits_for_tree.go
@@ -5,13 +5,13 @@ import (
"io"
"sort"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/git/lstree"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const (
diff --git a/internal/service/commit/list_last_commits_for_tree_test.go b/internal/service/commit/list_last_commits_for_tree_test.go
index 4fc13a5f5..b357c79c9 100644
--- a/internal/service/commit/list_last_commits_for_tree_test.go
+++ b/internal/service/commit/list_last_commits_for_tree_test.go
@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/raw_blame.go b/internal/service/commit/raw_blame.go
index 0e7c40483..49be189e6 100644
--- a/internal/service/commit/raw_blame.go
+++ b/internal/service/commit/raw_blame.go
@@ -5,8 +5,8 @@ import (
"io"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/commit/raw_blame_test.go b/internal/service/commit/raw_blame_test.go
index 932b34e1c..8ecdbefcf 100644
--- a/internal/service/commit/raw_blame_test.go
+++ b/internal/service/commit/raw_blame_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/server.go b/internal/service/commit/server.go
index 7f2024531..7b155075d 100644
--- a/internal/service/commit/server.go
+++ b/internal/service/commit/server.go
@@ -1,9 +1,9 @@
package commit
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/service/ref"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/commit/stats.go b/internal/service/commit/stats.go
index 724b7c05d..dad833bfb 100644
--- a/internal/service/commit/stats.go
+++ b/internal/service/commit/stats.go
@@ -7,10 +7,10 @@ import (
"strconv"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) CommitStats(ctx context.Context, in *gitalypb.CommitStatsRequest) (*gitalypb.CommitStatsResponse, error) {
diff --git a/internal/service/commit/stats_test.go b/internal/service/commit/stats_test.go
index f39534730..373326622 100644
--- a/internal/service/commit/stats_test.go
+++ b/internal/service/commit/stats_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/testhelper_test.go b/internal/service/commit/testhelper_test.go
index b73bf3090..b60efbd05 100644
--- a/internal/service/commit/testhelper_test.go
+++ b/internal/service/commit/testhelper_test.go
@@ -7,9 +7,9 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/commit/tree_entries.go b/internal/service/commit/tree_entries.go
index f46bfd910..ca99abc52 100644
--- a/internal/service/commit/tree_entries.go
+++ b/internal/service/commit/tree_entries.go
@@ -5,9 +5,9 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/commit/tree_entries_helper.go b/internal/service/commit/tree_entries_helper.go
index c2fed8773..e67055f23 100644
--- a/internal/service/commit/tree_entries_helper.go
+++ b/internal/service/commit/tree_entries_helper.go
@@ -8,8 +8,8 @@ import (
"path/filepath"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type revisionPath struct{ revision, path string }
diff --git a/internal/service/commit/tree_entries_test.go b/internal/service/commit/tree_entries_test.go
index 5eb422499..4a86f7507 100644
--- a/internal/service/commit/tree_entries_test.go
+++ b/internal/service/commit/tree_entries_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/tree_entry.go b/internal/service/commit/tree_entry.go
index f00c4cf44..527edf654 100644
--- a/internal/service/commit/tree_entry.go
+++ b/internal/service/commit/tree_entry.go
@@ -5,9 +5,9 @@ import (
"io"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/commit/tree_entry_test.go b/internal/service/commit/tree_entry_test.go
index d7a75d592..775e80517 100644
--- a/internal/service/commit/tree_entry_test.go
+++ b/internal/service/commit/tree_entry_test.go
@@ -7,8 +7,8 @@ import (
"io"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/commit/util.go b/internal/service/commit/util.go
index 93811d0f3..ff4695f1e 100644
--- a/internal/service/commit/util.go
+++ b/internal/service/commit/util.go
@@ -5,7 +5,7 @@ import (
"path"
"strconv"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func newTreeEntry(commitOid, rootOid, rootPath string, filename, oidBytes, modeBytes []byte) (*gitalypb.TreeEntry, error) {
diff --git a/internal/service/conflicts/list_conflict_files.go b/internal/service/conflicts/list_conflict_files.go
index 0664feeb8..a3cd16935 100644
--- a/internal/service/conflicts/list_conflict_files.go
+++ b/internal/service/conflicts/list_conflict_files.go
@@ -3,8 +3,8 @@ package conflicts
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/conflicts/list_conflict_files_test.go b/internal/service/conflicts/list_conflict_files_test.go
index 849881e46..e05c4e7d2 100644
--- a/internal/service/conflicts/list_conflict_files_test.go
+++ b/internal/service/conflicts/list_conflict_files_test.go
@@ -6,8 +6,8 @@ import (
"github.com/golang/protobuf/proto"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/conflicts/resolve_conflicts.go b/internal/service/conflicts/resolve_conflicts.go
index 72416953a..b0b758f70 100644
--- a/internal/service/conflicts/resolve_conflicts.go
+++ b/internal/service/conflicts/resolve_conflicts.go
@@ -3,8 +3,8 @@ package conflicts
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/conflicts/resolve_conflicts_test.go b/internal/service/conflicts/resolve_conflicts_test.go
index 6740f2f38..8c92b3a0e 100644
--- a/internal/service/conflicts/resolve_conflicts_test.go
+++ b/internal/service/conflicts/resolve_conflicts_test.go
@@ -6,11 +6,11 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
serverPkg "gitlab.com/gitlab-org/gitaly/internal/server"
"gitlab.com/gitlab-org/gitaly/internal/service/conflicts"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
diff --git a/internal/service/conflicts/server.go b/internal/service/conflicts/server.go
index aa000398c..e11a5724d 100644
--- a/internal/service/conflicts/server.go
+++ b/internal/service/conflicts/server.go
@@ -1,8 +1,8 @@
package conflicts
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/conflicts/testhelper_test.go b/internal/service/conflicts/testhelper_test.go
index 64dcd23d9..bf86ac742 100644
--- a/internal/service/conflicts/testhelper_test.go
+++ b/internal/service/conflicts/testhelper_test.go
@@ -6,10 +6,10 @@ import (
"testing"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/diff/commit.go b/internal/service/diff/commit.go
index be42f6c5b..3502a8dee 100644
--- a/internal/service/diff/commit.go
+++ b/internal/service/diff/commit.go
@@ -6,9 +6,9 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/diff"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/diff/commit_test.go b/internal/service/diff/commit_test.go
index b1f1ca56c..b24c7122a 100644
--- a/internal/service/diff/commit_test.go
+++ b/internal/service/diff/commit_test.go
@@ -8,9 +8,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/diff"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/diff/numstat.go b/internal/service/diff/numstat.go
index f6a1aecce..38f7de5a7 100644
--- a/internal/service/diff/numstat.go
+++ b/internal/service/diff/numstat.go
@@ -3,10 +3,10 @@ package diff
import (
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/diff"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/diff/numstat_test.go b/internal/service/diff/numstat_test.go
index ddebbf7c1..073e1323c 100644
--- a/internal/service/diff/numstat_test.go
+++ b/internal/service/diff/numstat_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/diff"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/diff/patch.go b/internal/service/diff/patch.go
index 51718088a..f8c02be6a 100644
--- a/internal/service/diff/patch.go
+++ b/internal/service/diff/patch.go
@@ -1,8 +1,8 @@
package diff
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) CommitPatch(in *gitalypb.CommitPatchRequest, stream gitalypb.DiffService_CommitPatchServer) error {
diff --git a/internal/service/diff/patch_test.go b/internal/service/diff/patch_test.go
index dbe75c4f5..d1a3396bf 100644
--- a/internal/service/diff/patch_test.go
+++ b/internal/service/diff/patch_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestSuccessfulCommitPatchRequest(t *testing.T) {
diff --git a/internal/service/diff/raw.go b/internal/service/diff/raw.go
index bbafc36ee..24c5678f1 100644
--- a/internal/service/diff/raw.go
+++ b/internal/service/diff/raw.go
@@ -4,8 +4,8 @@ import (
"context"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/diff/raw_test.go b/internal/service/diff/raw_test.go
index e775d48dd..4e3ce322a 100644
--- a/internal/service/diff/raw_test.go
+++ b/internal/service/diff/raw_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/diff/server.go b/internal/service/diff/server.go
index 8474b63f6..e4034fe66 100644
--- a/internal/service/diff/server.go
+++ b/internal/service/diff/server.go
@@ -1,8 +1,8 @@
package diff
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const msgSizeThreshold = 5 * 1024
diff --git a/internal/service/diff/testhelper_test.go b/internal/service/diff/testhelper_test.go
index 4d080da42..8ce35a803 100644
--- a/internal/service/diff/testhelper_test.go
+++ b/internal/service/diff/testhelper_test.go
@@ -6,9 +6,9 @@ import (
"testing"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/namespace/namespace.go b/internal/service/namespace/namespace.go
index afd4caf87..005c03655 100644
--- a/internal/service/namespace/namespace.go
+++ b/internal/service/namespace/namespace.go
@@ -5,8 +5,8 @@ import (
"os"
"path"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/namespace/namespace_test.go b/internal/service/namespace/namespace_test.go
index a01fe0b0a..f21dc0174 100644
--- a/internal/service/namespace/namespace_test.go
+++ b/internal/service/namespace/namespace_test.go
@@ -7,10 +7,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/namespace/server.go b/internal/service/namespace/server.go
index 395a050b3..52578d587 100644
--- a/internal/service/namespace/server.go
+++ b/internal/service/namespace/server.go
@@ -1,6 +1,6 @@
package namespace
-import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+import "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
type server struct{}
diff --git a/internal/service/namespace/testhelper_test.go b/internal/service/namespace/testhelper_test.go
index 8d76d82ef..31a6cd00a 100644
--- a/internal/service/namespace/testhelper_test.go
+++ b/internal/service/namespace/testhelper_test.go
@@ -4,8 +4,8 @@ import (
"net"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/objectpool/alternates.go b/internal/service/objectpool/alternates.go
index 332c7a2e5..4ca132204 100644
--- a/internal/service/objectpool/alternates.go
+++ b/internal/service/objectpool/alternates.go
@@ -12,10 +12,10 @@ import (
"time"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// DisconnectGitAlternates is a slightly dangerous RPC. It optimistically
diff --git a/internal/service/objectpool/alternates_test.go b/internal/service/objectpool/alternates_test.go
index c1418c402..730d0b128 100644
--- a/internal/service/objectpool/alternates_test.go
+++ b/internal/service/objectpool/alternates_test.go
@@ -7,10 +7,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestDisconnectGitAlternates(t *testing.T) {
diff --git a/internal/service/objectpool/create.go b/internal/service/objectpool/create.go
index f6997378a..4affaa1c5 100644
--- a/internal/service/objectpool/create.go
+++ b/internal/service/objectpool/create.go
@@ -3,8 +3,8 @@ package objectpool
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/objectpool/create_test.go b/internal/service/objectpool/create_test.go
index f4bbe0ee0..37187709b 100644
--- a/internal/service/objectpool/create_test.go
+++ b/internal/service/objectpool/create_test.go
@@ -7,10 +7,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/objectpool/fetch_into_object_pool.go b/internal/service/objectpool/fetch_into_object_pool.go
index c331a5da4..206783062 100644
--- a/internal/service/objectpool/fetch_into_object_pool.go
+++ b/internal/service/objectpool/fetch_into_object_pool.go
@@ -8,7 +8,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/helper"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) FetchIntoObjectPool(ctx context.Context, req *gitalypb.FetchIntoObjectPoolRequest) (*gitalypb.FetchIntoObjectPoolResponse, error) {
diff --git a/internal/service/objectpool/fetch_into_object_pool_test.go b/internal/service/objectpool/fetch_into_object_pool_test.go
index 4a40d13bb..088ff94a0 100644
--- a/internal/service/objectpool/fetch_into_object_pool_test.go
+++ b/internal/service/objectpool/fetch_into_object_pool_test.go
@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestFetchIntoObjectPool_Success(t *testing.T) {
diff --git a/internal/service/objectpool/link.go b/internal/service/objectpool/link.go
index 3b97a1ee7..404691ebd 100644
--- a/internal/service/objectpool/link.go
+++ b/internal/service/objectpool/link.go
@@ -5,8 +5,8 @@ import (
"errors"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/objectpool/link_test.go b/internal/service/objectpool/link_test.go
index 9dfe55ae3..19d8fe3f1 100644
--- a/internal/service/objectpool/link_test.go
+++ b/internal/service/objectpool/link_test.go
@@ -9,10 +9,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/objectpool/reduplicate.go b/internal/service/objectpool/reduplicate.go
index 908a7c866..eb4f5c834 100644
--- a/internal/service/objectpool/reduplicate.go
+++ b/internal/service/objectpool/reduplicate.go
@@ -3,8 +3,8 @@ package objectpool
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/objectpool/reduplicate_test.go b/internal/service/objectpool/reduplicate_test.go
index 579c687d7..ae90ee437 100644
--- a/internal/service/objectpool/reduplicate_test.go
+++ b/internal/service/objectpool/reduplicate_test.go
@@ -5,10 +5,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestReduplicate(t *testing.T) {
diff --git a/internal/service/objectpool/server.go b/internal/service/objectpool/server.go
index e6dbb1c6b..8cbd8302a 100644
--- a/internal/service/objectpool/server.go
+++ b/internal/service/objectpool/server.go
@@ -1,7 +1,7 @@
package objectpool
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct{}
diff --git a/internal/service/objectpool/testhelper_test.go b/internal/service/objectpool/testhelper_test.go
index 943fd1942..23776a262 100644
--- a/internal/service/objectpool/testhelper_test.go
+++ b/internal/service/objectpool/testhelper_test.go
@@ -6,8 +6,8 @@ import (
"testing"
"time"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/operations/apply_patch.go b/internal/service/operations/apply_patch.go
index f616904d4..5ea8ad841 100644
--- a/internal/service/operations/apply_patch.go
+++ b/internal/service/operations/apply_patch.go
@@ -3,8 +3,8 @@ package operations
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/apply_patch_test.go b/internal/service/operations/apply_patch_test.go
index dfa08ed69..d80b7a419 100644
--- a/internal/service/operations/apply_patch_test.go
+++ b/internal/service/operations/apply_patch_test.go
@@ -10,10 +10,10 @@ import (
"testing/iotest"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/service/operations"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/branches.go b/internal/service/operations/branches.go
index 943da6ee4..535e7959e 100644
--- a/internal/service/operations/branches.go
+++ b/internal/service/operations/branches.go
@@ -3,8 +3,8 @@ package operations
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/branches_test.go b/internal/service/operations/branches_test.go
index 7b6597afd..4d5f89132 100644
--- a/internal/service/operations/branches_test.go
+++ b/internal/service/operations/branches_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/cherry_pick.go b/internal/service/operations/cherry_pick.go
index ef0e9cb00..eda34e325 100644
--- a/internal/service/operations/cherry_pick.go
+++ b/internal/service/operations/cherry_pick.go
@@ -3,8 +3,8 @@ package operations
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/cherry_pick_test.go b/internal/service/operations/cherry_pick_test.go
index bc3609c72..d613f8a49 100644
--- a/internal/service/operations/cherry_pick_test.go
+++ b/internal/service/operations/cherry_pick_test.go
@@ -6,11 +6,11 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
serverPkg "gitlab.com/gitlab-org/gitaly/internal/server"
"gitlab.com/gitlab-org/gitaly/internal/service/operations"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
diff --git a/internal/service/operations/commit_files.go b/internal/service/operations/commit_files.go
index 1959e061c..ae4e52290 100644
--- a/internal/service/operations/commit_files.go
+++ b/internal/service/operations/commit_files.go
@@ -3,9 +3,9 @@ package operations
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/commit_files_test.go b/internal/service/operations/commit_files_test.go
index 61ef23c15..3541a302e 100644
--- a/internal/service/operations/commit_files_test.go
+++ b/internal/service/operations/commit_files_test.go
@@ -6,11 +6,11 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/service/operations"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
)
diff --git a/internal/service/operations/merge.go b/internal/service/operations/merge.go
index 15ae06677..80496e155 100644
--- a/internal/service/operations/merge.go
+++ b/internal/service/operations/merge.go
@@ -5,9 +5,9 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) UserMergeBranch(bidi gitalypb.OperationService_UserMergeBranchServer) error {
diff --git a/internal/service/operations/merge_test.go b/internal/service/operations/merge_test.go
index 2492fe8ec..7cf2ded2f 100644
--- a/internal/service/operations/merge_test.go
+++ b/internal/service/operations/merge_test.go
@@ -10,10 +10,10 @@ import (
"time"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/rebase.go b/internal/service/operations/rebase.go
index acc77b277..306811e30 100644
--- a/internal/service/operations/rebase.go
+++ b/internal/service/operations/rebase.go
@@ -6,9 +6,9 @@ import (
"context"
"errors"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/rebase_test.go b/internal/service/operations/rebase_test.go
index ba03ede41..ad8c3295e 100644
--- a/internal/service/operations/rebase_test.go
+++ b/internal/service/operations/rebase_test.go
@@ -10,10 +10,10 @@ import (
"time"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/service/operations"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
)
diff --git a/internal/service/operations/revert.go b/internal/service/operations/revert.go
index 8a9a78524..3956f3995 100644
--- a/internal/service/operations/revert.go
+++ b/internal/service/operations/revert.go
@@ -3,8 +3,8 @@ package operations
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/revert_test.go b/internal/service/operations/revert_test.go
index 621b858de..93d655f74 100644
--- a/internal/service/operations/revert_test.go
+++ b/internal/service/operations/revert_test.go
@@ -5,10 +5,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/service/operations"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
)
diff --git a/internal/service/operations/server.go b/internal/service/operations/server.go
index 7a26c69f6..90729e9f5 100644
--- a/internal/service/operations/server.go
+++ b/internal/service/operations/server.go
@@ -1,8 +1,8 @@
package operations
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/operations/squash.go b/internal/service/operations/squash.go
index 83207907a..a18e9c969 100644
--- a/internal/service/operations/squash.go
+++ b/internal/service/operations/squash.go
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/squash_test.go b/internal/service/operations/squash_test.go
index c0874f5cd..05bdb8bbe 100644
--- a/internal/service/operations/squash_test.go
+++ b/internal/service/operations/squash_test.go
@@ -8,10 +8,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/submodules.go b/internal/service/operations/submodules.go
index 7bffd8d47..23ffe0557 100644
--- a/internal/service/operations/submodules.go
+++ b/internal/service/operations/submodules.go
@@ -5,8 +5,8 @@ import (
"fmt"
"regexp"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/operations/submodules_test.go b/internal/service/operations/submodules_test.go
index ec1b1ba5b..d54447751 100644
--- a/internal/service/operations/submodules_test.go
+++ b/internal/service/operations/submodules_test.go
@@ -6,10 +6,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/git/lstree"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/tags.go b/internal/service/operations/tags.go
index 585addeac..aaff1f357 100644
--- a/internal/service/operations/tags.go
+++ b/internal/service/operations/tags.go
@@ -3,8 +3,8 @@ package operations
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) UserDeleteTag(ctx context.Context, req *gitalypb.UserDeleteTagRequest) (*gitalypb.UserDeleteTagResponse, error) {
diff --git a/internal/service/operations/tags_test.go b/internal/service/operations/tags_test.go
index e8d10d1d4..aea03ab19 100644
--- a/internal/service/operations/tags_test.go
+++ b/internal/service/operations/tags_test.go
@@ -6,10 +6,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/testhelper_test.go b/internal/service/operations/testhelper_test.go
index f9244d7fa..ae731da2d 100644
--- a/internal/service/operations/testhelper_test.go
+++ b/internal/service/operations/testhelper_test.go
@@ -10,10 +10,10 @@ import (
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/operations/update_branches_test.go b/internal/service/operations/update_branches_test.go
index 8dd910dc9..95aabfd9c 100644
--- a/internal/service/operations/update_branches_test.go
+++ b/internal/service/operations/update_branches_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/operations/utils.go b/internal/service/operations/utils.go
index 1a4bc3375..899a86450 100644
--- a/internal/service/operations/utils.go
+++ b/internal/service/operations/utils.go
@@ -3,7 +3,7 @@ package operations
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type cherryPickOrRevertRequest interface {
diff --git a/internal/service/ref/branches.go b/internal/service/ref/branches.go
index 603d6d6fd..b8604a85f 100644
--- a/internal/service/ref/branches.go
+++ b/internal/service/ref/branches.go
@@ -6,10 +6,10 @@ import (
"io"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/ref/branches_test.go b/internal/service/ref/branches_test.go
index 104ff21a7..27faf09d5 100644
--- a/internal/service/ref/branches_test.go
+++ b/internal/service/ref/branches_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/delete_refs.go b/internal/service/ref/delete_refs.go
index e47764f94..1ed18e9d1 100644
--- a/internal/service/ref/delete_refs.go
+++ b/internal/service/ref/delete_refs.go
@@ -6,10 +6,10 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/updateref"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/ref/delete_refs_test.go b/internal/service/ref/delete_refs_test.go
index 294073d67..3c4faab6f 100644
--- a/internal/service/ref/delete_refs_test.go
+++ b/internal/service/ref/delete_refs_test.go
@@ -5,8 +5,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/list_new_blobs.go b/internal/service/ref/list_new_blobs.go
index c22adb706..e80c9e2f8 100644
--- a/internal/service/ref/list_new_blobs.go
+++ b/internal/service/ref/list_new_blobs.go
@@ -5,10 +5,10 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) ListNewBlobs(in *gitalypb.ListNewBlobsRequest, stream gitalypb.RefService_ListNewBlobsServer) error {
diff --git a/internal/service/ref/list_new_blobs_test.go b/internal/service/ref/list_new_blobs_test.go
index 7ad96f26e..568053862 100644
--- a/internal/service/ref/list_new_blobs_test.go
+++ b/internal/service/ref/list_new_blobs_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/ref/list_new_commits.go b/internal/service/ref/list_new_commits.go
index d7aea36e3..44a5ba161 100644
--- a/internal/service/ref/list_new_commits.go
+++ b/internal/service/ref/list_new_commits.go
@@ -3,11 +3,11 @@ package ref
import (
"bufio"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) ListNewCommits(in *gitalypb.ListNewCommitsRequest, stream gitalypb.RefService_ListNewCommitsServer) error {
diff --git a/internal/service/ref/list_new_commits_test.go b/internal/service/ref/list_new_commits_test.go
index abb513073..f0b5cdffc 100644
--- a/internal/service/ref/list_new_commits_test.go
+++ b/internal/service/ref/list_new_commits_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/ref/pack_refs.go b/internal/service/ref/pack_refs.go
index 66de8ca32..f7a139fe2 100644
--- a/internal/service/ref/pack_refs.go
+++ b/internal/service/ref/pack_refs.go
@@ -5,10 +5,10 @@ import (
"errors"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/repository"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (server) PackRefs(ctx context.Context, in *gitalypb.PackRefsRequest) (*gitalypb.PackRefsResponse, error) {
diff --git a/internal/service/ref/pack_refs_test.go b/internal/service/ref/pack_refs_test.go
index 45ed2a29d..ad479415e 100644
--- a/internal/service/ref/pack_refs_test.go
+++ b/internal/service/ref/pack_refs_test.go
@@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestPackRefsSuccessfulRequest(t *testing.T) {
diff --git a/internal/service/ref/refexists.go b/internal/service/ref/refexists.go
index 31f7ae05f..9baf5e5bd 100644
--- a/internal/service/ref/refexists.go
+++ b/internal/service/ref/refexists.go
@@ -5,10 +5,10 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// RefExists returns true if the given reference exists. The ref must start with the string `ref/`
diff --git a/internal/service/ref/refexists_test.go b/internal/service/ref/refexists_test.go
index 44fa71d93..2998461f8 100644
--- a/internal/service/ref/refexists_test.go
+++ b/internal/service/ref/refexists_test.go
@@ -3,9 +3,9 @@ package ref
import (
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/refname.go b/internal/service/ref/refname.go
index ac4e3ca2d..7d857f288 100644
--- a/internal/service/ref/refname.go
+++ b/internal/service/ref/refname.go
@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// FindRefName returns a ref that starts with the given prefix, if one exists.
diff --git a/internal/service/ref/refname_test.go b/internal/service/ref/refname_test.go
index e9501de03..de77b2995 100644
--- a/internal/service/ref/refname_test.go
+++ b/internal/service/ref/refname_test.go
@@ -4,9 +4,9 @@ import (
"context"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/refnames.go b/internal/service/ref/refnames.go
index 43c20969e..848b92d95 100644
--- a/internal/service/ref/refnames.go
+++ b/internal/service/ref/refnames.go
@@ -4,9 +4,9 @@ import (
"bufio"
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// FindAllBranchNames creates a stream of ref names for all branches in the given repository
diff --git a/internal/service/ref/refnames_containing.go b/internal/service/ref/refnames_containing.go
index 1fc4595dd..13d412dc6 100644
--- a/internal/service/ref/refnames_containing.go
+++ b/internal/service/ref/refnames_containing.go
@@ -4,10 +4,10 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// ListBranchNamesContainingCommit returns a maximum of in.GetLimit() Branch names
diff --git a/internal/service/ref/refs.go b/internal/service/ref/refs.go
index 789c3653a..267f29855 100644
--- a/internal/service/ref/refs.go
+++ b/internal/service/ref/refs.go
@@ -8,13 +8,13 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
"gitlab.com/gitlab-org/gitaly/internal/helper/lines"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
var (
diff --git a/internal/service/ref/refs_test.go b/internal/service/ref/refs_test.go
index f50355d54..6108dfb85 100644
--- a/internal/service/ref/refs_test.go
+++ b/internal/service/ref/refs_test.go
@@ -13,12 +13,12 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/git/updateref"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/remote_branches.go b/internal/service/ref/remote_branches.go
index 4f8148ad3..2a84e38a1 100644
--- a/internal/service/ref/remote_branches.go
+++ b/internal/service/ref/remote_branches.go
@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) FindAllRemoteBranches(req *gitalypb.FindAllRemoteBranchesRequest, stream gitalypb.RefService_FindAllRemoteBranchesServer) error {
diff --git a/internal/service/ref/remote_branches_test.go b/internal/service/ref/remote_branches_test.go
index 1d1be32ad..2fd0c78ab 100644
--- a/internal/service/ref/remote_branches_test.go
+++ b/internal/service/ref/remote_branches_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/server.go b/internal/service/ref/server.go
index 78cc7fbb0..61d44ebb4 100644
--- a/internal/service/ref/server.go
+++ b/internal/service/ref/server.go
@@ -1,8 +1,8 @@
package ref
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/ref/tag_messages.go b/internal/service/ref/tag_messages.go
index 574d2c859..0bbfb081a 100644
--- a/internal/service/ref/tag_messages.go
+++ b/internal/service/ref/tag_messages.go
@@ -3,8 +3,8 @@ package ref
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/ref/tag_messages_test.go b/internal/service/ref/tag_messages_test.go
index cb1b0117e..9514bd38a 100644
--- a/internal/service/ref/tag_messages_test.go
+++ b/internal/service/ref/tag_messages_test.go
@@ -6,9 +6,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ref/testhelper_test.go b/internal/service/ref/testhelper_test.go
index 13524eac3..d66d2c64b 100644
--- a/internal/service/ref/testhelper_test.go
+++ b/internal/service/ref/testhelper_test.go
@@ -9,10 +9,10 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper/lines"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/ref/util.go b/internal/service/ref/util.go
index b2f0161a6..d4b1120eb 100644
--- a/internal/service/ref/util.go
+++ b/internal/service/ref/util.go
@@ -4,10 +4,10 @@ import (
"bytes"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper/lines"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
var localBranchFormatFields = []string{"%(refname)", "%(objectname)"}
diff --git a/internal/service/ref/util_test.go b/internal/service/ref/util_test.go
index 331d2f570..7a9d40d29 100644
--- a/internal/service/ref/util_test.go
+++ b/internal/service/ref/util_test.go
@@ -5,7 +5,7 @@ import (
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestBuildLocalBranch(t *testing.T) {
diff --git a/internal/service/register.go b/internal/service/register.go
index db5a4b2d4..aa1466e14 100644
--- a/internal/service/register.go
+++ b/internal/service/register.go
@@ -1,7 +1,6 @@
package service
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/service/blob"
"gitlab.com/gitlab-org/gitaly/internal/service/cleanup"
@@ -19,6 +18,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/service/ssh"
"gitlab.com/gitlab-org/gitaly/internal/service/storage"
"gitlab.com/gitlab-org/gitaly/internal/service/wiki"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/health"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
diff --git a/internal/service/remote/fetch_internal_remote.go b/internal/service/remote/fetch_internal_remote.go
index 8ca4d6ab0..4ce3940e2 100644
--- a/internal/service/remote/fetch_internal_remote.go
+++ b/internal/service/remote/fetch_internal_remote.go
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/remote/fetch_internal_remote_test.go b/internal/service/remote/fetch_internal_remote_test.go
index f30671c66..e752bffb3 100644
--- a/internal/service/remote/fetch_internal_remote_test.go
+++ b/internal/service/remote/fetch_internal_remote_test.go
@@ -6,10 +6,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
serverPkg "gitlab.com/gitlab-org/gitaly/internal/server"
"gitlab.com/gitlab-org/gitaly/internal/service/remote"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
diff --git a/internal/service/remote/find_remote_root_ref.go b/internal/service/remote/find_remote_root_ref.go
index fb6bcec4d..d0dc20c24 100644
--- a/internal/service/remote/find_remote_root_ref.go
+++ b/internal/service/remote/find_remote_root_ref.go
@@ -5,8 +5,8 @@ import (
"context"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/remote/find_remote_root_ref_test.go b/internal/service/remote/find_remote_root_ref_test.go
index a37a597e5..a8c418abb 100644
--- a/internal/service/remote/find_remote_root_ref_test.go
+++ b/internal/service/remote/find_remote_root_ref_test.go
@@ -4,8 +4,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/remote/remotes.go b/internal/service/remote/remotes.go
index f680a3492..8281a799d 100644
--- a/internal/service/remote/remotes.go
+++ b/internal/service/remote/remotes.go
@@ -11,9 +11,9 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/git/remote"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/remote/remotes_test.go b/internal/service/remote/remotes_test.go
index 80c1e6dbb..3a657cf90 100644
--- a/internal/service/remote/remotes_test.go
+++ b/internal/service/remote/remotes_test.go
@@ -10,8 +10,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/remote/server.go b/internal/service/remote/server.go
index 858efed9f..e7783adac 100644
--- a/internal/service/remote/server.go
+++ b/internal/service/remote/server.go
@@ -1,8 +1,8 @@
package remote
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/remote/testhelper_test.go b/internal/service/remote/testhelper_test.go
index 4b94ddd82..111710a4e 100644
--- a/internal/service/remote/testhelper_test.go
+++ b/internal/service/remote/testhelper_test.go
@@ -6,9 +6,9 @@ import (
"os"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/remote/update_remote_mirror.go b/internal/service/remote/update_remote_mirror.go
index a35441928..db48d0b3a 100644
--- a/internal/service/remote/update_remote_mirror.go
+++ b/internal/service/remote/update_remote_mirror.go
@@ -3,8 +3,8 @@ package remote
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/remote/update_remote_mirror_test.go b/internal/service/remote/update_remote_mirror_test.go
index 75ee77f4a..de35d348c 100644
--- a/internal/service/remote/update_remote_mirror_test.go
+++ b/internal/service/remote/update_remote_mirror_test.go
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/apply_gitattributes.go b/internal/service/repository/apply_gitattributes.go
index 9868f4b83..4f52a06be 100644
--- a/internal/service/repository/apply_gitattributes.go
+++ b/internal/service/repository/apply_gitattributes.go
@@ -8,10 +8,10 @@ import (
"os"
"path"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/apply_gitattributes_test.go b/internal/service/repository/apply_gitattributes_test.go
index c51889d92..16485791a 100644
--- a/internal/service/repository/apply_gitattributes_test.go
+++ b/internal/service/repository/apply_gitattributes_test.go
@@ -8,8 +8,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/archive.go b/internal/service/repository/archive.go
index 27f7cd605..0f491ea3e 100644
--- a/internal/service/repository/archive.go
+++ b/internal/service/repository/archive.go
@@ -6,12 +6,12 @@ import (
"os/exec"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/service/commit"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/repository/archive_test.go b/internal/service/repository/archive_test.go
index 4ff6c727c..16d9e278b 100644
--- a/internal/service/repository/archive_test.go
+++ b/internal/service/repository/archive_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/backup_custom_hooks.go b/internal/service/repository/backup_custom_hooks.go
index ce4354f2a..c30fe935a 100644
--- a/internal/service/repository/backup_custom_hooks.go
+++ b/internal/service/repository/backup_custom_hooks.go
@@ -5,9 +5,9 @@ import (
"os/exec"
"path"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/backup_custom_hooks_test.go b/internal/service/repository/backup_custom_hooks_test.go
index 33816b823..abd3df248 100644
--- a/internal/service/repository/backup_custom_hooks_test.go
+++ b/internal/service/repository/backup_custom_hooks_test.go
@@ -11,9 +11,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/repository/calculate_checksum.go b/internal/service/repository/calculate_checksum.go
index 85fafbdfe..e07c512a3 100644
--- a/internal/service/repository/calculate_checksum.go
+++ b/internal/service/repository/calculate_checksum.go
@@ -10,10 +10,10 @@ import (
"regexp"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/alternates"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/calculate_checksum_test.go b/internal/service/repository/calculate_checksum_test.go
index 5a949da19..b29d245dc 100644
--- a/internal/service/repository/calculate_checksum_test.go
+++ b/internal/service/repository/calculate_checksum_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/cleanup.go b/internal/service/repository/cleanup.go
index 8d2bff957..7ed72bef8 100644
--- a/internal/service/repository/cleanup.go
+++ b/internal/service/repository/cleanup.go
@@ -8,9 +8,9 @@ import (
"strings"
"time"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/cleanup_test.go b/internal/service/repository/cleanup_test.go
index e34b0a049..69687c8ee 100644
--- a/internal/service/repository/cleanup_test.go
+++ b/internal/service/repository/cleanup_test.go
@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestCleanupDeletesRefsLocks(t *testing.T) {
diff --git a/internal/service/repository/clone_from_pool.go b/internal/service/repository/clone_from_pool.go
index 00f346e0f..3f0716239 100644
--- a/internal/service/repository/clone_from_pool.go
+++ b/internal/service/repository/clone_from_pool.go
@@ -6,9 +6,9 @@ import (
"fmt"
"os"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) CloneFromPool(ctx context.Context, req *gitalypb.CloneFromPoolRequest) (*gitalypb.CloneFromPoolResponse, error) {
diff --git a/internal/service/repository/clone_from_pool_internal.go b/internal/service/repository/clone_from_pool_internal.go
index deadf6736..e5fa5ddfe 100644
--- a/internal/service/repository/clone_from_pool_internal.go
+++ b/internal/service/repository/clone_from_pool_internal.go
@@ -6,12 +6,12 @@ import (
"fmt"
"os"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/git/repository"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) CloneFromPoolInternal(ctx context.Context, req *gitalypb.CloneFromPoolInternalRequest) (*gitalypb.CloneFromPoolInternalResponse, error) {
diff --git a/internal/service/repository/clone_from_pool_internal_test.go b/internal/service/repository/clone_from_pool_internal_test.go
index 4e4dba45c..4de108c08 100644
--- a/internal/service/repository/clone_from_pool_internal_test.go
+++ b/internal/service/repository/clone_from_pool_internal_test.go
@@ -12,11 +12,11 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/grpc/metadata"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/service/repository"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func NewTestObjectPool(t *testing.T) (*objectpool.ObjectPool, *gitalypb.Repository) {
diff --git a/internal/service/repository/clone_from_pool_test.go b/internal/service/repository/clone_from_pool_test.go
index 3a9ef4ae3..558e23f03 100644
--- a/internal/service/repository/clone_from_pool_test.go
+++ b/internal/service/repository/clone_from_pool_test.go
@@ -8,10 +8,10 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/grpc/metadata"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/gittest"
"gitlab.com/gitlab-org/gitaly/internal/service/repository"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestCloneFromPoolHTTP(t *testing.T) {
diff --git a/internal/service/repository/config.go b/internal/service/repository/config.go
index d189ce9b6..e9f411f68 100644
--- a/internal/service/repository/config.go
+++ b/internal/service/repository/config.go
@@ -3,10 +3,10 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/config_test.go b/internal/service/repository/config_test.go
index b39c4c457..de7f099e9 100644
--- a/internal/service/repository/config_test.go
+++ b/internal/service/repository/config_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/create.go b/internal/service/repository/create.go
index 80617cb0f..bfbbb6864 100644
--- a/internal/service/repository/create.go
+++ b/internal/service/repository/create.go
@@ -4,9 +4,9 @@ import (
"context"
"os"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) CreateRepository(ctx context.Context, req *gitalypb.CreateRepositoryRequest) (*gitalypb.CreateRepositoryResponse, error) {
diff --git a/internal/service/repository/create_bundle.go b/internal/service/repository/create_bundle.go
index ee1fed758..048df371e 100644
--- a/internal/service/repository/create_bundle.go
+++ b/internal/service/repository/create_bundle.go
@@ -3,8 +3,8 @@ package repository
import (
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/create_bundle_test.go b/internal/service/repository/create_bundle_test.go
index b0582c14e..c70373121 100644
--- a/internal/service/repository/create_bundle_test.go
+++ b/internal/service/repository/create_bundle_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/create_from_bundle.go b/internal/service/repository/create_from_bundle.go
index dffb329c1..045132048 100644
--- a/internal/service/repository/create_from_bundle.go
+++ b/internal/service/repository/create_from_bundle.go
@@ -7,10 +7,10 @@ import (
"path"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/create_from_bundle_test.go b/internal/service/repository/create_from_bundle_test.go
index 7c8a2f3c4..161fc1c9b 100644
--- a/internal/service/repository/create_from_bundle_test.go
+++ b/internal/service/repository/create_from_bundle_test.go
@@ -8,11 +8,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/create_from_snapshot.go b/internal/service/repository/create_from_snapshot.go
index 6084f060b..e2cf89758 100644
--- a/internal/service/repository/create_from_snapshot.go
+++ b/internal/service/repository/create_from_snapshot.go
@@ -8,10 +8,10 @@ import (
"os/exec"
"time"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/labkit/correlation"
"gitlab.com/gitlab-org/labkit/tracing"
"google.golang.org/grpc/codes"
diff --git a/internal/service/repository/create_from_snapshot_test.go b/internal/service/repository/create_from_snapshot_test.go
index b092479d0..a44d53946 100644
--- a/internal/service/repository/create_from_snapshot_test.go
+++ b/internal/service/repository/create_from_snapshot_test.go
@@ -11,9 +11,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/archive"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/create_from_url.go b/internal/service/repository/create_from_url.go
index c17b9ec3a..9a67a8e67 100644
--- a/internal/service/repository/create_from_url.go
+++ b/internal/service/repository/create_from_url.go
@@ -5,9 +5,9 @@ import (
"fmt"
"os"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/create_from_url_test.go b/internal/service/repository/create_from_url_test.go
index c50aec953..10d3431c5 100644
--- a/internal/service/repository/create_from_url_test.go
+++ b/internal/service/repository/create_from_url_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/create_test.go b/internal/service/repository/create_test.go
index df025e09d..b125153f1 100644
--- a/internal/service/repository/create_test.go
+++ b/internal/service/repository/create_test.go
@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/fetch.go b/internal/service/repository/fetch.go
index 58102c56f..6e055d618 100644
--- a/internal/service/repository/fetch.go
+++ b/internal/service/repository/fetch.go
@@ -3,8 +3,8 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) FetchSourceBranch(ctx context.Context, req *gitalypb.FetchSourceBranchRequest) (*gitalypb.FetchSourceBranchResponse, error) {
diff --git a/internal/service/repository/fetch_remote.go b/internal/service/repository/fetch_remote.go
index 419051816..58ce53b8f 100644
--- a/internal/service/repository/fetch_remote.go
+++ b/internal/service/repository/fetch_remote.go
@@ -3,8 +3,8 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) FetchRemote(ctx context.Context, in *gitalypb.FetchRemoteRequest) (*gitalypb.FetchRemoteResponse, error) {
diff --git a/internal/service/repository/fetch_remote_test.go b/internal/service/repository/fetch_remote_test.go
index 30630a1cc..7001a6bba 100644
--- a/internal/service/repository/fetch_remote_test.go
+++ b/internal/service/repository/fetch_remote_test.go
@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/fetch_test.go b/internal/service/repository/fetch_test.go
index e6b069712..af3e2ff53 100644
--- a/internal/service/repository/fetch_test.go
+++ b/internal/service/repository/fetch_test.go
@@ -6,12 +6,12 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitLog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
serverPkg "gitlab.com/gitlab-org/gitaly/internal/server"
"gitlab.com/gitlab-org/gitaly/internal/service/repository"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
diff --git a/internal/service/repository/fork.go b/internal/service/repository/fork.go
index ce480e7d1..80a1d0071 100644
--- a/internal/service/repository/fork.go
+++ b/internal/service/repository/fork.go
@@ -7,10 +7,10 @@ import (
"path"
"github.com/golang/protobuf/jsonpb"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/labkit/tracing"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/fork_test.go b/internal/service/repository/fork_test.go
index 813f0edff..8fb4279f8 100644
--- a/internal/service/repository/fork_test.go
+++ b/internal/service/repository/fork_test.go
@@ -7,10 +7,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/service/repository"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
)
diff --git a/internal/service/repository/fsck.go b/internal/service/repository/fsck.go
index b92ca8cf5..0d29440de 100644
--- a/internal/service/repository/fsck.go
+++ b/internal/service/repository/fsck.go
@@ -4,9 +4,9 @@ import (
"bytes"
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/alternates"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) Fsck(ctx context.Context, req *gitalypb.FsckRequest) (*gitalypb.FsckResponse, error) {
diff --git a/internal/service/repository/fsck_test.go b/internal/service/repository/fsck_test.go
index dce33887e..84057ec9b 100644
--- a/internal/service/repository/fsck_test.go
+++ b/internal/service/repository/fsck_test.go
@@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestFsckSuccess(t *testing.T) {
diff --git a/internal/service/repository/gc.go b/internal/service/repository/gc.go
index daf073b57..ad1fc45aa 100644
--- a/internal/service/repository/gc.go
+++ b/internal/service/repository/gc.go
@@ -10,11 +10,11 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/housekeeping"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/gc_test.go b/internal/service/repository/gc_test.go
index 0cf9e5d58..80ed55a2e 100644
--- a/internal/service/repository/gc_test.go
+++ b/internal/service/repository/gc_test.go
@@ -12,10 +12,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/gittest"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/info_attributes.go b/internal/service/repository/info_attributes.go
index bbd423652..b5399fce8 100644
--- a/internal/service/repository/info_attributes.go
+++ b/internal/service/repository/info_attributes.go
@@ -5,8 +5,8 @@ import (
"os"
"path"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/info_attributes_test.go b/internal/service/repository/info_attributes_test.go
index 4f55fc87f..cc867ed68 100644
--- a/internal/service/repository/info_attributes_test.go
+++ b/internal/service/repository/info_attributes_test.go
@@ -8,8 +8,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/repository/license.go b/internal/service/repository/license.go
index fcc0e4916..8a292a0b9 100644
--- a/internal/service/repository/license.go
+++ b/internal/service/repository/license.go
@@ -3,8 +3,8 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) FindLicense(ctx context.Context, in *gitalypb.FindLicenseRequest) (*gitalypb.FindLicenseResponse, error) {
diff --git a/internal/service/repository/license_test.go b/internal/service/repository/license_test.go
index 71f071de0..93d1c6d6a 100644
--- a/internal/service/repository/license_test.go
+++ b/internal/service/repository/license_test.go
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestSuccessfulFindLicenseRequest(t *testing.T) {
diff --git a/internal/service/repository/merge_base.go b/internal/service/repository/merge_base.go
index 890779ebd..a28da1123 100644
--- a/internal/service/repository/merge_base.go
+++ b/internal/service/repository/merge_base.go
@@ -4,9 +4,9 @@ import (
"context"
"io/ioutil"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/merge_base_test.go b/internal/service/repository/merge_base_test.go
index 8e99e9310..765479520 100644
--- a/internal/service/repository/merge_base_test.go
+++ b/internal/service/repository/merge_base_test.go
@@ -4,8 +4,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/pre_fetch.go b/internal/service/repository/pre_fetch.go
index a0377f1f8..7c7813152 100644
--- a/internal/service/repository/pre_fetch.go
+++ b/internal/service/repository/pre_fetch.go
@@ -3,8 +3,8 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// PreFetch is unsafe https://gitlab.com/gitlab-org/gitaly/issues/1552
diff --git a/internal/service/repository/pre_fetch_test.go b/internal/service/repository/pre_fetch_test.go
index 7460c5b8e..2bc0dd953 100644
--- a/internal/service/repository/pre_fetch_test.go
+++ b/internal/service/repository/pre_fetch_test.go
@@ -14,9 +14,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
// getForkDestination creates a repo struct and path, but does not actually create the directory
diff --git a/internal/service/repository/raw_changes.go b/internal/service/repository/raw_changes.go
index 6855ba38b..c500b3772 100644
--- a/internal/service/repository/raw_changes.go
+++ b/internal/service/repository/raw_changes.go
@@ -7,12 +7,12 @@ import (
"strconv"
"unicode/utf8"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/git/rawdiff"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) GetRawChanges(req *gitalypb.GetRawChangesRequest, stream gitalypb.RepositoryService_GetRawChangesServer) error {
diff --git a/internal/service/repository/raw_changes_test.go b/internal/service/repository/raw_changes_test.go
index 459aaffb3..1d6fdb1b6 100644
--- a/internal/service/repository/raw_changes_test.go
+++ b/internal/service/repository/raw_changes_test.go
@@ -7,8 +7,8 @@ import (
"unicode/utf8"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/rebase_in_progress.go b/internal/service/repository/rebase_in_progress.go
index 3cb5d8242..563ed6385 100644
--- a/internal/service/repository/rebase_in_progress.go
+++ b/internal/service/repository/rebase_in_progress.go
@@ -8,9 +8,9 @@ import (
"strings"
"time"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/housekeeping"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/rebase_in_progress_test.go b/internal/service/repository/rebase_in_progress_test.go
index 44d1bbe61..cddc063d4 100644
--- a/internal/service/repository/rebase_in_progress_test.go
+++ b/internal/service/repository/rebase_in_progress_test.go
@@ -8,8 +8,8 @@ import (
"time"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/repack.go b/internal/service/repository/repack.go
index 35520dfba..4e55be085 100644
--- a/internal/service/repository/repack.go
+++ b/internal/service/repository/repack.go
@@ -5,9 +5,9 @@ import (
"fmt"
"github.com/prometheus/client_golang/prometheus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/repository"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/repack_test.go b/internal/service/repository/repack_test.go
index 08d94960b..a05bb756d 100644
--- a/internal/service/repository/repack_test.go
+++ b/internal/service/repository/repack_test.go
@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/gittest"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/repository.go b/internal/service/repository/repository.go
index a5e5ec468..1e1f71c40 100644
--- a/internal/service/repository/repository.go
+++ b/internal/service/repository/repository.go
@@ -4,9 +4,9 @@ import (
"context"
"io/ioutil"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/repository_test.go b/internal/service/repository/repository_test.go
index 840cf24e6..ea6e91763 100644
--- a/internal/service/repository/repository_test.go
+++ b/internal/service/repository/repository_test.go
@@ -8,10 +8,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/restore_custom_hooks.go b/internal/service/repository/restore_custom_hooks.go
index d68a2df3b..0b7dbdf21 100644
--- a/internal/service/repository/restore_custom_hooks.go
+++ b/internal/service/repository/restore_custom_hooks.go
@@ -3,9 +3,9 @@ package repository
import (
"os/exec"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/restore_custom_hooks_test.go b/internal/service/repository/restore_custom_hooks_test.go
index 7b91c99b3..ebfc4c164 100644
--- a/internal/service/repository/restore_custom_hooks_test.go
+++ b/internal/service/repository/restore_custom_hooks_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/search_files.go b/internal/service/repository/search_files.go
index 8865e0b56..a0c6fe991 100644
--- a/internal/service/repository/search_files.go
+++ b/internal/service/repository/search_files.go
@@ -6,11 +6,11 @@ import (
"errors"
"io"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/lines"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/repository/search_files_test.go b/internal/service/repository/search_files_test.go
index b2d217c60..1c08117df 100644
--- a/internal/service/repository/search_files_test.go
+++ b/internal/service/repository/search_files_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/server.go b/internal/service/repository/server.go
index a4a0355e9..5e2029934 100644
--- a/internal/service/repository/server.go
+++ b/internal/service/repository/server.go
@@ -3,9 +3,9 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/repository/size.go b/internal/service/repository/size.go
index cc84acf4c..63adc13b9 100644
--- a/internal/service/repository/size.go
+++ b/internal/service/repository/size.go
@@ -9,9 +9,9 @@ import (
"strconv"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) RepositorySize(ctx context.Context, in *gitalypb.RepositorySizeRequest) (*gitalypb.RepositorySizeResponse, error) {
diff --git a/internal/service/repository/size_test.go b/internal/service/repository/size_test.go
index 48dbc9f84..959ab63db 100644
--- a/internal/service/repository/size_test.go
+++ b/internal/service/repository/size_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/snapshot.go b/internal/service/repository/snapshot.go
index 32ebb8edc..55575651f 100644
--- a/internal/service/repository/snapshot.go
+++ b/internal/service/repository/snapshot.go
@@ -11,10 +11,10 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/archive"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/repository/snapshot_test.go b/internal/service/repository/snapshot_test.go
index 1fcb17ab0..446efcc7e 100644
--- a/internal/service/repository/snapshot_test.go
+++ b/internal/service/repository/snapshot_test.go
@@ -15,11 +15,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/archive"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/catfile"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/squash_in_progress.go b/internal/service/repository/squash_in_progress.go
index 87ebaaeb6..e9a1fb889 100644
--- a/internal/service/repository/squash_in_progress.go
+++ b/internal/service/repository/squash_in_progress.go
@@ -5,8 +5,8 @@ import (
"fmt"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/repository/squash_in_progress_test.go b/internal/service/repository/squash_in_progress_test.go
index 2e262130c..9dffb44be 100644
--- a/internal/service/repository/squash_in_progress_test.go
+++ b/internal/service/repository/squash_in_progress_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/testhelper_test.go b/internal/service/repository/testhelper_test.go
index b3dcab8fd..905d152ad 100644
--- a/internal/service/repository/testhelper_test.go
+++ b/internal/service/repository/testhelper_test.go
@@ -9,12 +9,12 @@ import (
"time"
"github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitalyauth "gitlab.com/gitlab-org/gitaly/auth"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/server/auth"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/repository/util.go b/internal/service/repository/util.go
index 05772034a..0a585caa0 100644
--- a/internal/service/repository/util.go
+++ b/internal/service/repository/util.go
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func removeOriginInRepo(ctx context.Context, repository *gitalypb.Repository) error {
diff --git a/internal/service/repository/write_config.go b/internal/service/repository/write_config.go
index e80ced88b..1ecf99d39 100644
--- a/internal/service/repository/write_config.go
+++ b/internal/service/repository/write_config.go
@@ -3,8 +3,8 @@ package repository
import (
"context"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) WriteConfig(ctx context.Context, req *gitalypb.WriteConfigRequest) (*gitalypb.WriteConfigResponse, error) {
diff --git a/internal/service/repository/write_config_test.go b/internal/service/repository/write_config_test.go
index fd8770cb6..32be7808d 100644
--- a/internal/service/repository/write_config_test.go
+++ b/internal/service/repository/write_config_test.go
@@ -4,9 +4,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/repository/write_ref.go b/internal/service/repository/write_ref.go
index 1d4fe269d..3e5d0739d 100644
--- a/internal/service/repository/write_ref.go
+++ b/internal/service/repository/write_ref.go
@@ -5,10 +5,10 @@ import (
"context"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/updateref"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) WriteRef(ctx context.Context, req *gitalypb.WriteRefRequest) (*gitalypb.WriteRefResponse, error) {
diff --git a/internal/service/repository/write_ref_test.go b/internal/service/repository/write_ref_test.go
index f000208b1..e836e03cc 100644
--- a/internal/service/repository/write_ref_test.go
+++ b/internal/service/repository/write_ref_test.go
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/server/info.go b/internal/service/server/info.go
index ca54cf5d0..ce674b13c 100644
--- a/internal/service/server/info.go
+++ b/internal/service/server/info.go
@@ -7,7 +7,7 @@ import (
"path"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git"
diff --git a/internal/service/server/info_test.go b/internal/service/server/info_test.go
index 7559d068b..d1b287285 100644
--- a/internal/service/server/info_test.go
+++ b/internal/service/server/info_test.go
@@ -6,7 +6,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitalyauth "gitlab.com/gitlab-org/gitaly/auth"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git"
@@ -14,6 +13,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/storage"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
"gitlab.com/gitlab-org/gitaly/internal/version"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/server/server.go b/internal/service/server/server.go
index 389e9afb9..b5b4ac0a7 100644
--- a/internal/service/server/server.go
+++ b/internal/service/server/server.go
@@ -1,6 +1,6 @@
package server
-import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+import "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
type server struct{}
diff --git a/internal/service/smarthttp/inforefs.go b/internal/service/smarthttp/inforefs.go
index dcfb8b94d..0070173ae 100644
--- a/internal/service/smarthttp/inforefs.go
+++ b/internal/service/smarthttp/inforefs.go
@@ -7,10 +7,10 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/pktline"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/smarthttp/inforefs_test.go b/internal/service/smarthttp/inforefs_test.go
index d1cc8fb89..945f4b2f2 100644
--- a/internal/service/smarthttp/inforefs_test.go
+++ b/internal/service/smarthttp/inforefs_test.go
@@ -9,10 +9,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/smarthttp/receive_pack.go b/internal/service/smarthttp/receive_pack.go
index 75734a9c6..4014d4ad8 100644
--- a/internal/service/smarthttp/receive_pack.go
+++ b/internal/service/smarthttp/receive_pack.go
@@ -3,10 +3,10 @@ package smarthttp
import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/smarthttp/receive_pack_test.go b/internal/service/smarthttp/receive_pack_test.go
index abb012bc1..ffd778f5a 100644
--- a/internal/service/smarthttp/receive_pack_test.go
+++ b/internal/service/smarthttp/receive_pack_test.go
@@ -13,12 +13,12 @@ import (
"time"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/smarthttp/server.go b/internal/service/smarthttp/server.go
index ed7567d75..005052085 100644
--- a/internal/service/smarthttp/server.go
+++ b/internal/service/smarthttp/server.go
@@ -1,6 +1,6 @@
package smarthttp
-import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+import "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
type server struct{}
diff --git a/internal/service/smarthttp/testhelper_test.go b/internal/service/smarthttp/testhelper_test.go
index acbcd5131..bc5dbb6e3 100644
--- a/internal/service/smarthttp/testhelper_test.go
+++ b/internal/service/smarthttp/testhelper_test.go
@@ -5,9 +5,9 @@ import (
"os"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/smarthttp/upload_pack.go b/internal/service/smarthttp/upload_pack.go
index 21b7e71c7..14fac54e1 100644
--- a/internal/service/smarthttp/upload_pack.go
+++ b/internal/service/smarthttp/upload_pack.go
@@ -4,10 +4,10 @@ import (
"io"
"github.com/prometheus/client_golang/prometheus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/internal/service/smarthttp/upload_pack_test.go b/internal/service/smarthttp/upload_pack_test.go
index 07dad6531..c45fde676 100644
--- a/internal/service/smarthttp/upload_pack_test.go
+++ b/internal/service/smarthttp/upload_pack_test.go
@@ -14,11 +14,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/pktline"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ssh/receive_pack.go b/internal/service/ssh/receive_pack.go
index 2deaa62b7..170a28b5c 100644
--- a/internal/service/ssh/receive_pack.go
+++ b/internal/service/ssh/receive_pack.go
@@ -5,10 +5,10 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/ssh/receive_pack_test.go b/internal/service/ssh/receive_pack_test.go
index 735464ac8..4eb1b1249 100644
--- a/internal/service/ssh/receive_pack_test.go
+++ b/internal/service/ssh/receive_pack_test.go
@@ -15,12 +15,12 @@ import (
"github.com/golang/protobuf/jsonpb"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
"gitlab.com/gitlab-org/gitaly/internal/git/objectpool"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ssh/server.go b/internal/service/ssh/server.go
index 4c75c0d8c..cbdb6fed5 100644
--- a/internal/service/ssh/server.go
+++ b/internal/service/ssh/server.go
@@ -1,6 +1,6 @@
package ssh
-import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+import "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
type server struct{}
diff --git a/internal/service/ssh/testhelper_test.go b/internal/service/ssh/testhelper_test.go
index 4c362419f..aa47bcdc2 100644
--- a/internal/service/ssh/testhelper_test.go
+++ b/internal/service/ssh/testhelper_test.go
@@ -7,10 +7,10 @@ import (
"testing"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/ssh/upload_archive.go b/internal/service/ssh/upload_archive.go
index 683ebe6bb..271223f37 100644
--- a/internal/service/ssh/upload_archive.go
+++ b/internal/service/ssh/upload_archive.go
@@ -3,10 +3,10 @@ package ssh
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/ssh/upload_archive_test.go b/internal/service/ssh/upload_archive_test.go
index 59b2a9d94..f9576b1cd 100644
--- a/internal/service/ssh/upload_archive_test.go
+++ b/internal/service/ssh/upload_archive_test.go
@@ -9,8 +9,8 @@ import (
"github.com/golang/protobuf/jsonpb"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/ssh/upload_pack.go b/internal/service/ssh/upload_pack.go
index 324cd4275..969764285 100644
--- a/internal/service/ssh/upload_pack.go
+++ b/internal/service/ssh/upload_pack.go
@@ -3,10 +3,10 @@ package ssh
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/helper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/streamio"
)
diff --git a/internal/service/ssh/upload_pack_test.go b/internal/service/ssh/upload_pack_test.go
index e9d2ba026..ea08292db 100644
--- a/internal/service/ssh/upload_pack_test.go
+++ b/internal/service/ssh/upload_pack_test.go
@@ -12,9 +12,9 @@ import (
"github.com/golang/protobuf/jsonpb"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/storage/deleteall.go b/internal/service/storage/deleteall.go
index 436bbdc97..f560b0d16 100644
--- a/internal/service/storage/deleteall.go
+++ b/internal/service/storage/deleteall.go
@@ -8,9 +8,9 @@ import (
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/storage/deleteall_test.go b/internal/service/storage/deleteall_test.go
index d8b8b3ccb..be0814a81 100644
--- a/internal/service/storage/deleteall_test.go
+++ b/internal/service/storage/deleteall_test.go
@@ -9,10 +9,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/tempdir"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/storage/listdirectories.go b/internal/service/storage/listdirectories.go
index 66d6310e2..8c4e90b06 100644
--- a/internal/service/storage/listdirectories.go
+++ b/internal/service/storage/listdirectories.go
@@ -5,9 +5,9 @@ import (
"path/filepath"
"strings"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/chunk"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/storage/listdirectories_test.go b/internal/service/storage/listdirectories_test.go
index 4e827e988..115d17444 100644
--- a/internal/service/storage/listdirectories_test.go
+++ b/internal/service/storage/listdirectories_test.go
@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestListDirectories(t *testing.T) {
diff --git a/internal/service/storage/server.go b/internal/service/storage/server.go
index 58437dee0..b8d2d2012 100644
--- a/internal/service/storage/server.go
+++ b/internal/service/storage/server.go
@@ -1,6 +1,6 @@
package storage
-import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+import "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
type server struct{}
diff --git a/internal/service/storage/testhelper_test.go b/internal/service/storage/testhelper_test.go
index 4694edea0..63da71a65 100644
--- a/internal/service/storage/testhelper_test.go
+++ b/internal/service/storage/testhelper_test.go
@@ -6,9 +6,9 @@ import (
"path/filepath"
"testing"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/wiki/delete_page.go b/internal/service/wiki/delete_page.go
index 8d0a5b70b..6f877c561 100644
--- a/internal/service/wiki/delete_page.go
+++ b/internal/service/wiki/delete_page.go
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/delete_page_test.go b/internal/service/wiki/delete_page_test.go
index 4df9c81aa..0ffac0eb0 100644
--- a/internal/service/wiki/delete_page_test.go
+++ b/internal/service/wiki/delete_page_test.go
@@ -4,9 +4,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/wiki/find_file.go b/internal/service/wiki/find_file.go
index c05598c92..6ecb62058 100644
--- a/internal/service/wiki/find_file.go
+++ b/internal/service/wiki/find_file.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/find_file_test.go b/internal/service/wiki/find_file_test.go
index 9e750c916..e4735dfdd 100644
--- a/internal/service/wiki/find_file_test.go
+++ b/internal/service/wiki/find_file_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/wiki/find_page.go b/internal/service/wiki/find_page.go
index 290e92ce5..3ba586544 100644
--- a/internal/service/wiki/find_page.go
+++ b/internal/service/wiki/find_page.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/find_page_test.go b/internal/service/wiki/find_page_test.go
index 2db25e290..9cb8511a5 100644
--- a/internal/service/wiki/find_page_test.go
+++ b/internal/service/wiki/find_page_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/wiki/formatted_data.go b/internal/service/wiki/formatted_data.go
index 12b2f11f6..c4e24b7c3 100644
--- a/internal/service/wiki/formatted_data.go
+++ b/internal/service/wiki/formatted_data.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/formatted_data_test.go b/internal/service/wiki/formatted_data_test.go
index 90263dcbb..3233c416a 100644
--- a/internal/service/wiki/formatted_data_test.go
+++ b/internal/service/wiki/formatted_data_test.go
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/wiki/get_all_pages.go b/internal/service/wiki/get_all_pages.go
index 555606585..807516c5d 100644
--- a/internal/service/wiki/get_all_pages.go
+++ b/internal/service/wiki/get_all_pages.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) WikiGetAllPages(request *gitalypb.WikiGetAllPagesRequest, stream gitalypb.WikiService_WikiGetAllPagesServer) error {
diff --git a/internal/service/wiki/get_all_pages_test.go b/internal/service/wiki/get_all_pages_test.go
index a328579e7..c14acbd46 100644
--- a/internal/service/wiki/get_all_pages_test.go
+++ b/internal/service/wiki/get_all_pages_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/wiki/get_page_versions.go b/internal/service/wiki/get_page_versions.go
index 2925c6f07..6c55cf7e3 100644
--- a/internal/service/wiki/get_page_versions.go
+++ b/internal/service/wiki/get_page_versions.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/get_page_versions_test.go b/internal/service/wiki/get_page_versions_test.go
index 6da221901..6456146d3 100644
--- a/internal/service/wiki/get_page_versions_test.go
+++ b/internal/service/wiki/get_page_versions_test.go
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestWikiGetPageVersionsRequest(t *testing.T) {
diff --git a/internal/service/wiki/list_pages.go b/internal/service/wiki/list_pages.go
index d740b26a4..664f4b1f1 100644
--- a/internal/service/wiki/list_pages.go
+++ b/internal/service/wiki/list_pages.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func (s *server) WikiListPages(request *gitalypb.WikiListPagesRequest, stream gitalypb.WikiService_WikiListPagesServer) error {
diff --git a/internal/service/wiki/list_pages_test.go b/internal/service/wiki/list_pages_test.go
index 07b46a02b..4bb9d6995 100644
--- a/internal/service/wiki/list_pages_test.go
+++ b/internal/service/wiki/list_pages_test.go
@@ -5,8 +5,8 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestSuccessfulWikiListPagesRequest(t *testing.T) {
diff --git a/internal/service/wiki/server.go b/internal/service/wiki/server.go
index 2b3575457..9d33c2bb3 100644
--- a/internal/service/wiki/server.go
+++ b/internal/service/wiki/server.go
@@ -1,8 +1,8 @@
package wiki
import (
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type server struct {
diff --git a/internal/service/wiki/testhelper_test.go b/internal/service/wiki/testhelper_test.go
index 1925fd622..28196a0b6 100644
--- a/internal/service/wiki/testhelper_test.go
+++ b/internal/service/wiki/testhelper_test.go
@@ -10,12 +10,12 @@ import (
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/git/hooks"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
diff --git a/internal/service/wiki/update_page.go b/internal/service/wiki/update_page.go
index 5c665a1bb..150c13d5a 100644
--- a/internal/service/wiki/update_page.go
+++ b/internal/service/wiki/update_page.go
@@ -3,8 +3,8 @@ package wiki
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/update_page_test.go b/internal/service/wiki/update_page_test.go
index 903c719a8..f4bbbbc78 100644
--- a/internal/service/wiki/update_page_test.go
+++ b/internal/service/wiki/update_page_test.go
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/service/wiki/util.go b/internal/service/wiki/util.go
index cc6f33fbb..cbbbd7778 100644
--- a/internal/service/wiki/util.go
+++ b/internal/service/wiki/util.go
@@ -3,7 +3,7 @@ package wiki
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
type requestWithCommitDetails interface {
diff --git a/internal/service/wiki/write_page.go b/internal/service/wiki/write_page.go
index 635fd8033..40342be98 100644
--- a/internal/service/wiki/write_page.go
+++ b/internal/service/wiki/write_page.go
@@ -3,8 +3,8 @@ package wiki
import (
"fmt"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/internal/service/wiki/write_page_test.go b/internal/service/wiki/write_page_test.go
index 04620d612..53577ebc7 100644
--- a/internal/service/wiki/write_page_test.go
+++ b/internal/service/wiki/write_page_test.go
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
gitlog "gitlab.com/gitlab-org/gitaly/internal/git/log"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
diff --git a/internal/tempdir/tempdir.go b/internal/tempdir/tempdir.go
index cc0b558ca..9431673b5 100644
--- a/internal/tempdir/tempdir.go
+++ b/internal/tempdir/tempdir.go
@@ -10,10 +10,10 @@ import (
"time"
log "github.com/sirupsen/logrus"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/helper/housekeeping"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
const (
diff --git a/internal/tempdir/tempdir_test.go b/internal/tempdir/tempdir_test.go
index ef09b7e25..67ef976e8 100644
--- a/internal/tempdir/tempdir_test.go
+++ b/internal/tempdir/tempdir_test.go
@@ -8,9 +8,9 @@ import (
"time"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
func TestNewAsRepositorySuccess(t *testing.T) {
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go
index a4b81cdd1..664587ac7 100644
--- a/internal/testhelper/testhelper.go
+++ b/internal/testhelper/testhelper.go
@@ -24,13 +24,13 @@ import (
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/helper/fieldextractors"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
gitalylog "gitlab.com/gitlab-org/gitaly/internal/log"
"gitlab.com/gitlab-org/gitaly/internal/storage"
+ "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
diff --git a/proto/README.md b/proto/README.md
index 64344fd36..03db88256 100644
--- a/proto/README.md
+++ b/proto/README.md
@@ -1,6 +1,6 @@
# Vendored copy of gitaly-proto
-Vendored from https://gitlab.com/gitlab-org/gitaly-proto at 617898b9c0c4c8a55c7b0abe95144109a3836270.
+Vendored from gitlab.com/gitlab-org/gitaly-proto at 617898b9c0c4c8a55c7b0abe95144109a3836270.
Migration in progress, see
https://gitlab.com/gitlab-org/gitaly/issues/1761. Do not edit files in
diff --git a/proto/REVISION b/proto/REVISION
new file mode 100644
index 000000000..f49415ca6
--- /dev/null
+++ b/proto/REVISION
@@ -0,0 +1 @@
+v1.38.0 \ No newline at end of file
diff --git a/proto/SOURCE b/proto/SOURCE
new file mode 100644
index 000000000..700b61c39
--- /dev/null
+++ b/proto/SOURCE
@@ -0,0 +1 @@
+gitlab.com/gitlab-org/gitaly-proto \ No newline at end of file
diff --git a/proto/go.mod b/proto/go.mod
new file mode 100644
index 000000000..b0417e4ba
--- /dev/null
+++ b/proto/go.mod
@@ -0,0 +1,3 @@
+module gitlab.com/gitlab-org/gitaly/proto
+
+go 1.12