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 ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6d1d38b27
Коммит
efaa6264cc
2
server/platform/services/cache/cache.go
поставляемый
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
поставляемый
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.
|
||||
|
||||
2
server/platform/services/cache/lru_striped.go
поставляемый
2
server/platform/services/cache/lru_striped.go
поставляемый
@@ -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.
|
||||
|
||||
2
server/platform/services/cache/lru_striped_bench_test.go
поставляемый
2
server/platform/services/cache/lru_striped_bench_test.go
поставляемый
@@ -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 (
|
||||
|
||||
2
server/platform/services/cache/lru_striped_test.go
поставляемый
2
server/platform/services/cache/lru_striped_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 makeLRUPredictableTestData(num int) [][2]string {
|
||||
|
||||
2
server/platform/services/cache/lru_test.go
поставляемый
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) {
|
||||
|
||||
2
server/platform/services/cache/mocks/Provider.go
поставляемый
2
server/platform/services/cache/mocks/Provider.go
поставляемый
@@ -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
поставляемый
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
|
||||
|
||||
2
server/platform/services/cache/provider_test.go
поставляемый
2
server/platform/services/cache/provider_test.go
поставляемый
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user