* MM-43753: Module workspaces Move to module workspaces We make the following changes: - Remove the vendor directory. - Dynamically create the go.work file if it doesn't exist. - Set the MM_SERVER_PATH for enterprise tests. https://mattermost.atlassian.net/browse/MM-43753 ```release-note NONE ``` * Fix missing reference to MM_SERVER_PATH ```release-note NONE ``` * Update test to add another nested dir ```release-note NONE ``` * Have separate script to create go.work file ```release-note NONE ``` Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
23 строки
566 B
Go
23 строки
566 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/mattermost/mattermost-server/v6/cmd/mattermost/commands"
|
|
// Import and register app layer slash commands
|
|
_ "github.com/mattermost/mattermost-server/v6/app/slashcommands"
|
|
// Plugins
|
|
_ "github.com/mattermost/mattermost-server/v6/model/gitlab"
|
|
// Enterprise Imports
|
|
_ "github.com/mattermost/mattermost-server/v6/imports"
|
|
)
|
|
|
|
func main() {
|
|
if err := commands.Run(os.Args[1:]); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|