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:
authorPavlo Strokov <pstrokov@gitlab.com>2021-05-25 15:43:12 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-05-27 17:06:12 +0300
commit12e0bf3ac80b72bef07a5733a70c270f70771859 (patch)
tree30d34863d4a51d7dbffd9be19038ab6f7288b0f2 /cmd/gitaly-hooks
parent6d0661ae39285390cc3b03c6847b85a442c93364 (diff)
Create module v14 gitaly version
The new "v14" version of the Gitaly module is named to match the next GitLab release. The module versioning is needed in order to pull gitaly as a dependency in other projects. The change updates all imports to include v14 version. The go.mod file was modified as well after go mod tidy execution. And the changes in dependency licenses are reflected in the NOTICE file. Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/3177
Diffstat (limited to 'cmd/gitaly-hooks')
-rw-r--r--cmd/gitaly-hooks/README.md2
-rw-r--r--cmd/gitaly-hooks/hooks.go24
-rw-r--r--cmd/gitaly-hooks/hooks_test.go34
3 files changed, 30 insertions, 30 deletions
diff --git a/cmd/gitaly-hooks/README.md b/cmd/gitaly-hooks/README.md
index fa75a5620..849bf3372 100644
--- a/cmd/gitaly-hooks/README.md
+++ b/cmd/gitaly-hooks/README.md
@@ -32,7 +32,7 @@ hooks are built in ruby and then get shelled out to `gitaly-hooks`.
## What does gitaly-hooks do?
-`gitaly-hooks` will take the arguments and make an RPC call to `PreReceiveHook`, `UpdateHook`, or `PostReceiveHook` accordingly.
+`gitaly-hooks` will take the arguments and make an RPC call to `PreReceiveHook`, `UpdateHook`, or `PostReceiveHook` accordingly.
**Note:**
Currently `gitaly-hooks` will only make an RPC call to `PreReceiveHook`, `UpdateHook`, or `PostReceiveHook` if a feature flag `gitaly_hook_rpc` is enabled. Otherwise, `gitaly-hooks` falls back to calling the ruby hooks directly.
diff --git a/cmd/gitaly-hooks/hooks.go b/cmd/gitaly-hooks/hooks.go
index b83c995eb..897ce30a8 100644
--- a/cmd/gitaly-hooks/hooks.go
+++ b/cmd/gitaly-hooks/hooks.go
@@ -11,18 +11,18 @@ import (
"strings"
"github.com/sirupsen/logrus"
- gitalyauth "gitlab.com/gitlab-org/gitaly/auth"
- "gitlab.com/gitlab-org/gitaly/client"
- "gitlab.com/gitlab-org/gitaly/internal/git"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/config/prometheus"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/hook"
- "gitlab.com/gitlab-org/gitaly/internal/gitlab"
- gitalylog "gitlab.com/gitlab-org/gitaly/internal/log"
- "gitlab.com/gitlab-org/gitaly/internal/metadata/featureflag"
- "gitlab.com/gitlab-org/gitaly/internal/stream"
- "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
- "gitlab.com/gitlab-org/gitaly/streamio"
+ gitalyauth "gitlab.com/gitlab-org/gitaly/v14/auth"
+ "gitlab.com/gitlab-org/gitaly/v14/client"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/git"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config/prometheus"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/hook"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitlab"
+ gitalylog "gitlab.com/gitlab-org/gitaly/v14/internal/log"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/metadata/featureflag"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/stream"
+ "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/v14/streamio"
"gitlab.com/gitlab-org/labkit/tracing"
"google.golang.org/grpc"
)
diff --git a/cmd/gitaly-hooks/hooks_test.go b/cmd/gitaly-hooks/hooks_test.go
index b41fe48ee..55b1d22a3 100644
--- a/cmd/gitaly-hooks/hooks_test.go
+++ b/cmd/gitaly-hooks/hooks_test.go
@@ -15,23 +15,23 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly/internal/command"
- "gitlab.com/gitlab-org/gitaly/internal/git"
- "gitlab.com/gitlab-org/gitaly/internal/git/gittest"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/config/auth"
- internallog "gitlab.com/gitlab-org/gitaly/internal/gitaly/config/log"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/config/prometheus"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/service"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/service/hook"
- "gitlab.com/gitlab-org/gitaly/internal/gitlab"
- gitalylog "gitlab.com/gitlab-org/gitaly/internal/log"
- "gitlab.com/gitlab-org/gitaly/internal/metadata/featureflag"
- "gitlab.com/gitlab-org/gitaly/internal/testhelper"
- "gitlab.com/gitlab-org/gitaly/internal/testhelper/testcfg"
- "gitlab.com/gitlab-org/gitaly/internal/testhelper/testserver"
- "gitlab.com/gitlab-org/gitaly/internal/transaction/txinfo"
- "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/command"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/git"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/git/gittest"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config/auth"
+ internallog "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config/log"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config/prometheus"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/service"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/service/hook"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/gitlab"
+ gitalylog "gitlab.com/gitlab-org/gitaly/v14/internal/log"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/metadata/featureflag"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/testhelper/testcfg"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/testhelper/testserver"
+ "gitlab.com/gitlab-org/gitaly/v14/internal/transaction/txinfo"
+ "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"
"google.golang.org/grpc"
)