generated from TrueCloudLab/basic
Makefile: Use -trimpath while building #25
2 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,7 @@ linters:
|
||||||
- bidichk
|
- bidichk
|
||||||
- durationcheck
|
- durationcheck
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- exportloopref
|
- copyloopvar
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- misspell
|
- misspell
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -6,7 +6,8 @@ test:
|
||||||
|
|
||||||
lib:
|
lib:
|
||||||
@mkdir -pv $(OUT_DIR)
|
@mkdir -pv $(OUT_DIR)
|
||||||
@go build -buildmode=plugin -o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE)
|
@go build -buildmode=plugin -trimpath \
|
||||||
|
-o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE)
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@golangci-lint run
|
@golangci-lint run
|
||||||
|
|
Loading…
Reference in a new issue