https://mattermost.atlassian.net/browse/MM-52079

```release-note
We upgrade the module version to 8.0. The new module path is github.com/mattermost-server/server/v8.
```


Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Этот коммит содержится в:
Agniva De Sarker
2023-04-18 11:05:28 +05:30
коммит произвёл GitHub
родитель 831ea38f7e
Коммит b200a07881
1534 изменённых файлов: 3778 добавлений и 3853 удалений

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

@@ -7,7 +7,7 @@ import (
"errors"
"time"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/server/v8/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/v6/model"
"github.com/mattermost/mattermost-server/server/v8/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/v6/model"
"github.com/mattermost/mattermost-server/server/v8/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/v6/server/platform/services/cache"
"github.com/mattermost/mattermost-server/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/v6/model"
"github.com/mattermost/mattermost-server/server/v8/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/v6/model"
"github.com/mattermost/mattermost-server/server/v8/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/v6/server/platform/services/cache"
cache "github.com/mattermost/mattermost-server/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/v6/model"
"github.com/mattermost/mattermost-server/server/v8/model"
)
// CacheOptions contains options for initializing a cache

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

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