MM-53032: Fix module path after repo rename (#23689)

It was a good decision in hindsight to keep the public module as 0.x
because this would have been a breaking change again.

https://mattermost.atlassian.net/browse/MM-53032
```release-note
Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8.

For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public
```
Этот коммит содержится в:
Agniva De Sarker
2023-06-11 10:54:35 +05:30
коммит произвёл GitHub
родитель a6d1d38b27
Коммит efaa6264cc
1425 изменённых файлов: 3864 добавлений и 3864 удалений

Просмотреть файл

@@ -17,10 +17,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/api4"
"github.com/mattermost/mattermost-server/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost-server/server/v8/channels/testlib"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/api4"
"github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
"github.com/mattermost/mattermost/server/v8/channels/testlib"
)
var coverprofileCounters map[string]int = make(map[string]int)

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/audit"
"github.com/mattermost/mattermost-server/server/v8/channels/store/sqlstore"
"github.com/mattermost/mattermost-server/server/v8/config"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/audit"
"github.com/mattermost/mattermost/server/v8/channels/store/sqlstore"
"github.com/mattermost/mattermost/server/v8/config"
)
var DbCmd = &cobra.Command{

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"path/filepath"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/audit"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/audit"
"github.com/pkg/errors"
"github.com/spf13/cobra"

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// There are no tests that actually run the Message Export job, because it can take a long time to complete depending

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/audit"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/audit"
)
var ImportCmd = &cobra.Command{

Просмотреть файл

@@ -6,12 +6,12 @@ package commands
import (
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/i18n"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost-server/server/v8/config"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/utils"
"github.com/mattermost/mattermost/server/v8/config"
)
func initDBCommandContextCobra(command *cobra.Command, readOnlyConfigStore bool, options ...app.Option) (*app.App, error) {

Просмотреть файл

@@ -10,10 +10,10 @@ import (
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/audit"
"github.com/mattermost/mattermost-server/server/v8/config"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/audit"
"github.com/mattermost/mattermost/server/v8/config"
)
var JobserverCmd = &cobra.Command{

Просмотреть файл

@@ -8,9 +8,9 @@ import (
"os"
"testing"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/v8/channels/api4"
"github.com/mattermost/mattermost-server/server/v8/channels/testlib"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/v8/channels/api4"
"github.com/mattermost/mattermost/server/v8/channels/testlib"
)
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.

Просмотреть файл

@@ -15,14 +15,14 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
"github.com/mattermost/mattermost-server/server/v8/channels/api4"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/manualtesting"
"github.com/mattermost/mattermost-server/server/v8/channels/utils"
"github.com/mattermost/mattermost-server/server/v8/channels/web"
"github.com/mattermost/mattermost-server/server/v8/channels/wsapi"
"github.com/mattermost/mattermost-server/server/v8/config"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/api4"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/manualtesting"
"github.com/mattermost/mattermost/server/v8/channels/utils"
"github.com/mattermost/mattermost/server/v8/channels/web"
"github.com/mattermost/mattermost/server/v8/channels/wsapi"
"github.com/mattermost/mattermost/server/v8/config"
)
var serverCmd = &cobra.Command{

Просмотреть файл

@@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/v8/channels/jobs"
"github.com/mattermost/mattermost-server/server/v8/config"
"github.com/mattermost/mattermost/server/v8/channels/jobs"
"github.com/mattermost/mattermost/server/v8/config"
)
const (

Просмотреть файл

@@ -13,11 +13,11 @@ import (
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/shared/i18n"
"github.com/mattermost/mattermost-server/server/v8/channels/api4"
"github.com/mattermost/mattermost-server/server/v8/channels/app"
"github.com/mattermost/mattermost-server/server/v8/channels/wsapi"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/v8/channels/api4"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/channels/wsapi"
)
var TestCmd = &cobra.Command{

Просмотреть файл

@@ -14,7 +14,7 @@ import (
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
const CustomDefaultsEnvVar = "MM_CUSTOM_DEFAULTS_PATH"

Просмотреть файл

@@ -6,7 +6,7 @@ package commands
import (
"github.com/spf13/cobra"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
var VersionCmd = &cobra.Command{

Просмотреть файл

@@ -6,18 +6,18 @@ package main
import (
"os"
"github.com/mattermost/mattermost-server/server/v8/cmd/mattermost/commands"
"github.com/mattermost/mattermost/server/v8/cmd/mattermost/commands"
// Import and register app layer slash commands
_ "github.com/mattermost/mattermost-server/server/v8/channels/app/slashcommands"
_ "github.com/mattermost/mattermost/server/v8/channels/app/slashcommands"
// Plugins
_ "github.com/mattermost/mattermost-server/server/v8/channels/app/oauthproviders/gitlab"
_ "github.com/mattermost/mattermost/server/v8/channels/app/oauthproviders/gitlab"
// Enterprise Imports
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
_ "github.com/mattermost/mattermost/server/v8/channels/imports"
// Blank imports for each product to register themselves
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
_ "github.com/mattermost/mattermost/server/v8/boards/product"
_ "github.com/mattermost/mattermost/server/v8/playbooks/product"
)
func main() {