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 удалений

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

@@ -25,13 +25,13 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost-server/server/public/plugin/utils"
"github.com/mattermost/mattermost-server/server/public/shared/i18n"
"github.com/mattermost/mattermost-server/server/v8/channels/app/request"
"github.com/mattermost/mattermost-server/server/v8/channels/utils/fileutils"
"github.com/mattermost/mattermost-server/server/v8/einterfaces/mocks"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin/utils"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/v8/channels/app/request"
"github.com/mattermost/mattermost/server/v8/channels/utils/fileutils"
"github.com/mattermost/mattermost/server/v8/einterfaces/mocks"
)
func getDefaultPluginSettingsSchema() string {
@@ -143,7 +143,7 @@ func TestPublicFilesPathConfiguration(t *testing.T) {
package main
import (
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
type MyPlugin struct {
@@ -830,7 +830,7 @@ func TestPluginAPIGetPlugins(t *testing.T) {
package main
import (
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
type MyPlugin struct {
@@ -982,7 +982,7 @@ func TestInstallPlugin(t *testing.T) {
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
type configuration struct {
@@ -1498,7 +1498,7 @@ func TestInterpluginPluginHTTP(t *testing.T) {
package main
import (
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
"bytes"
"net/http"
)
@@ -1539,8 +1539,8 @@ func TestInterpluginPluginHTTP(t *testing.T) {
package main
import (
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
"github.com/mattermost/mattermost/server/public/model"
"bytes"
"net/http"
"io"
@@ -1644,8 +1644,8 @@ func TestAPIMetrics(t *testing.T) {
package main
import (
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
)
type MyPlugin struct {
@@ -2044,7 +2044,7 @@ func TestRegisterCollectionAndTopic(t *testing.T) {
import (
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin"
)
type MyPlugin struct {
@@ -2112,8 +2112,8 @@ func TestPluginUploadsAPI(t *testing.T) {
"fmt"
"bytes"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost-server/server/public/plugin"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
)
type TestPlugin struct {