[#9] makefile: add env CGO_ENABLED #9

Closed
achuprov wants to merge 1 commit from achuprov/linters:master into master

View file

@ -6,7 +6,7 @@ test:
lib: lib:
@mkdir -pv $(OUT_DIR) @mkdir -pv $(OUT_DIR)
@go build -buildmode=plugin -o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE) @CGO_ENABLED=1 go build -buildmode=plugin -o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE)
Review

Why do we need it here? I believe we need it only in an application that loads plugin.

Why do we need it here? I believe we need it only in an application that _loads_ plugin.
lint: lint:
@golangci-lint run @golangci-lint run