summaryrefslogtreecommitdiff
path: root/cmd/gitlab-shell-authorized-principals-check/command
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-05 08:43:54 +0200
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-05 08:44:14 +0200
commit822e49b34afbc2092ae189091d693ae7867a8e5a (patch)
tree03ee935b241721d4b645f9ad95d11401e81932ab /cmd/gitlab-shell-authorized-principals-check/command
parent0d7ef238cb8c05eabaec85e62bec70a40147d1df (diff)
downloadgitlab-shell-822e49b34afbc2092ae189091d693ae7867a8e5a.tar.gz
go: Bump major version to v14
While gitlab-shell currently has a major version of v14, the module path it exposes is not using that major version like it is required by the Go standard. This makes it impossible for dependents to import gitlab-shell as a dependency without using a commit as version. Fix this by changing the module path of gitlab-shell to instead be `gitlab.com/gitlab-org/gitlab-shell/v14` and adjust all imports accordingly. Changelog: fixed
Diffstat (limited to 'cmd/gitlab-shell-authorized-principals-check/command')
-rw-r--r--cmd/gitlab-shell-authorized-principals-check/command/command.go12
-rw-r--r--cmd/gitlab-shell-authorized-principals-check/command/command_test.go12
2 files changed, 12 insertions, 12 deletions
diff --git a/cmd/gitlab-shell-authorized-principals-check/command/command.go b/cmd/gitlab-shell-authorized-principals-check/command/command.go
index 9418dad..a46f06d 100644
--- a/cmd/gitlab-shell-authorized-principals-check/command/command.go
+++ b/cmd/gitlab-shell-authorized-principals-check/command/command.go
@@ -1,12 +1,12 @@
package command
import (
- "gitlab.com/gitlab-org/gitlab-shell/internal/command"
- "gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedprincipals"
- "gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
- "gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
- "gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
- "gitlab.com/gitlab-org/gitlab-shell/internal/config"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/authorizedprincipals"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/commandargs"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/readwriter"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/shared/disallowedcommand"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/config"
)
func New(arguments []string, config *config.Config, readWriter *readwriter.ReadWriter) (command.Command, error) {
diff --git a/cmd/gitlab-shell-authorized-principals-check/command/command_test.go b/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
index 2ca2125..87360ef 100644
--- a/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
+++ b/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
@@ -4,12 +4,12 @@ import (
"testing"
"github.com/stretchr/testify/require"
- cmd "gitlab.com/gitlab-org/gitlab-shell/cmd/gitlab-shell-authorized-principals-check/command"
- "gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedprincipals"
- "gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
- "gitlab.com/gitlab-org/gitlab-shell/internal/config"
- "gitlab.com/gitlab-org/gitlab-shell/internal/executable"
- "gitlab.com/gitlab-org/gitlab-shell/internal/sshenv"
+ cmd "gitlab.com/gitlab-org/gitlab-shell/v14/cmd/gitlab-shell-authorized-principals-check/command"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/authorizedprincipals"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/commandargs"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/config"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/executable"
+ "gitlab.com/gitlab-org/gitlab-shell/v14/internal/sshenv"
)
var (