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
@@ -4,9 +4,9 @@
|
||||
package notifylogger
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
package notifymentions
|
||||
|
||||
import "github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
import "github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
type AppAPI interface {
|
||||
GetMemberForBoard(boardID, userID string) (*model.BoardMember, error)
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package notifymentions
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
// MentionDelivery provides an interface for delivering @mention notifications to other systems, such as
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
var atMentionRegexp = regexp.MustCompile(`\B@[[:alnum:]][[:alnum:]\.\-_:]*`)
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
func Test_extractMentions(t *testing.T) {
|
||||
|
||||
@@ -6,7 +6,7 @@ package notifysubscriptions
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
type AppAPI interface {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package notifysubscriptions
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
// SubscriptionDelivery provides an interface for delivering subscription notifications to other systems, such as
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
// Diff represents a difference between two versions of a block.
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/sergi/go-diff/diffmatchpatch"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func generateMarkdownDiff(oldText string, newText string, logger mlog.LoggerIFace) string {
|
||||
|
||||
@@ -13,10 +13,10 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/permissions"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/permissions"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -6,7 +6,7 @@ package notifysubscriptions
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
func getBoardDescription(board *model.Block) string {
|
||||
|
||||
@@ -6,10 +6,10 @@ package plugindelivery
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/utils"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/services/notify"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/utils"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
// MentionDeliver notifies a user they have been mentioned in a blockv ia the plugin API.
|
||||
|
||||
@@ -6,7 +6,7 @@ package plugindelivery
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package plugindelivery
|
||||
|
||||
import (
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
type servicesAPI interface {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -6,9 +6,9 @@ package plugindelivery
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
mm_model "github.com/mattermost/mattermost-server/server/public/model"
|
||||
mm_model "github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
"github.com/wiggin77/merror"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/v8/boards/model"
|
||||
"github.com/mattermost/mattermost/server/v8/boards/model"
|
||||
|
||||
"github.com/mattermost/mattermost-server/server/public/shared/mlog"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
type Action string
|
||||
|
||||
Ссылка в новой задаче
Block a user