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

2
server/platform/services/cache/cache.go поставляемый
Просмотреть файл

@@ -7,7 +7,7 @@ import (
"errors"
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// ErrKeyNotFound is the error when the given key is not found

2
server/platform/services/cache/lru.go поставляемый
Просмотреть файл

@@ -11,7 +11,7 @@ import (
"github.com/tinylib/msgp/msgp"
"github.com/vmihailenco/msgpack/v5"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// LRU is a thread-safe fixed size LRU cache.

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

@@ -10,7 +10,7 @@ import (
"github.com/cespare/xxhash/v2"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// LRUStriped keeps LRU caches in buckets in order to lower mutex contention.

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

@@ -11,7 +11,7 @@ import (
"github.com/cespare/xxhash/v2"
"github.com/mattermost/mattermost-server/server/v8/platform/services/cache"
"github.com/mattermost/mattermost/server/v8/platform/services/cache"
)
const (

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

@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func makeLRUPredictableTestData(num int) [][2]string {

2
server/platform/services/cache/lru_test.go поставляемый
Просмотреть файл

@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func TestLRU(t *testing.T) {

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

@@ -5,7 +5,7 @@ package mocks
import (
mock "github.com/stretchr/testify/mock"
cache "github.com/mattermost/mattermost-server/server/v8/platform/services/cache"
cache "github.com/mattermost/mattermost/server/v8/platform/services/cache"
)
// Provider is an autogenerated mock type for the Provider type

2
server/platform/services/cache/provider.go поставляемый
Просмотреть файл

@@ -6,7 +6,7 @@ package cache
import (
"time"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
// CacheOptions contains options for initializing a cache

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

@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/server/public/model"
"github.com/mattermost/mattermost/server/public/model"
)
func TestNewCache(t *testing.T) {