Remove unnecessary blank imports (round 2) (#23310)
I mistakenly assumed that those packages are naturally imported.
And also atleast one test would have broken.
None of them are true. :)
So we just import it again at a better place
This reverts commit 30a053314b.
```release-note
NONE
```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2d61ec0b1d
Коммит
9f1796f98b
@@ -1,9 +0,0 @@
|
|||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
||||||
// See LICENSE.txt for license information.
|
|
||||||
|
|
||||||
package imports
|
|
||||||
|
|
||||||
import (
|
|
||||||
// Needed to ensure the init() method in the FocalBoard product is run.
|
|
||||||
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
|
|
||||||
)
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
||||||
// See LICENSE.txt for license information.
|
|
||||||
|
|
||||||
package imports
|
|
||||||
|
|
||||||
import (
|
|
||||||
// Needed to ensure the init() method in the Playbooks product is run.
|
|
||||||
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
|
|
||||||
)
|
|
||||||
@@ -14,6 +14,10 @@ import (
|
|||||||
|
|
||||||
// Enterprise Imports
|
// Enterprise Imports
|
||||||
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
|
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
|
||||||
|
|
||||||
|
// Blank imports for each product to register themselves
|
||||||
|
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
|
||||||
|
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user