update make update dependencies rule (#20157)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
22d040eeb2
Коммит
6bad385164
13
Makefile
13
Makefile
@@ -619,17 +619,20 @@ setup-mac: ## Adds macOS hosts entries for Docker.
|
|||||||
update-dependencies: ## Uses go get -u to update all the dependencies while holding back any that require it.
|
update-dependencies: ## Uses go get -u to update all the dependencies while holding back any that require it.
|
||||||
@echo Updating Dependencies
|
@echo Updating Dependencies
|
||||||
|
|
||||||
|
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||||
|
@echo Enterprise repository detected, temporarily removing imports.go
|
||||||
|
rm -f imports/imports.go
|
||||||
|
endif
|
||||||
|
|
||||||
# Update all dependencies (does not update across major versions)
|
# Update all dependencies (does not update across major versions)
|
||||||
$(GO) get -u ./...
|
$(GO) get -u ./...
|
||||||
|
|
||||||
# Tidy up
|
# Tidy up
|
||||||
$(GO) mod tidy
|
$(GO) mod tidy
|
||||||
|
|
||||||
# Copy everything to vendor directory
|
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||||
# $(GO) mod vendor
|
cp $(BUILD_ENTERPRISE_DIR)/imports/imports.go imports/
|
||||||
|
endif
|
||||||
# Tidy up
|
|
||||||
$(GO) mod tidy
|
|
||||||
|
|
||||||
vet: ## Run mattermost go vet specific checks
|
vet: ## Run mattermost go vet specific checks
|
||||||
$(GO) install github.com/mattermost/mattermost-govet/v2@new
|
$(GO) install github.com/mattermost/mattermost-govet/v2@new
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user