Stop applying server lint rules to focalbard repo. (#20772)
* Stop applying server lint rules to focalbard repo. * Remove board packages from the tests. Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
14246abdef
Коммит
236716f9c7
7
Makefile
7
Makefile
@@ -184,7 +184,10 @@ endif
|
||||
# Prepare optional Boards build.
|
||||
BOARDS_PACKAGES=$(shell $(GO) list $(BUILD_BOARDS_DIR)/server/...)
|
||||
ifeq ($(BUILD_BOARDS),true)
|
||||
ALL_PACKAGES += $(BOARDS_PACKAGES)
|
||||
# We removed `ALL_PACKAGES += $(BOARDS_PACKAGES)` since board tests needs `-tag 'json1'` in the tests.
|
||||
# Adding that flag to server breaks the build with unsupported flag error.
|
||||
# PR: https://github.com/mattermost/mattermost-server/pull/20772
|
||||
# Ticket: https://mattermost.atlassian.net/browse/CLD-3800
|
||||
IGNORE:=$(shell echo Boards build selected, preparing)
|
||||
IGNORE:=$(shell rm -f imports/boards_imports.go)
|
||||
IGNORE:=$(shell cp $(BUILD_BOARDS_DIR)/mattermost-plugin/product/imports/boards_imports.go imports/)
|
||||
@@ -317,7 +320,7 @@ ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||
endif
|
||||
ifeq ($(BUILD_BOARDS),true)
|
||||
ifneq ($(MM_NO_BOARDS_LINT),true)
|
||||
$(GOBIN)/golangci-lint run $(BUILD_BOARDS_DIR)/server/...
|
||||
cd $(BUILD_BOARDS_DIR); make server-lint
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user