1 Star 0 Fork 1

EdgexFoundry/go-mod-messaging

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 999 Bytes
一键复制 编辑 原始数据 按行查看 历史
bruce 提交于 2024-10-03 09:37 . build: Upgrade to go-1.23, Linter1.61.0
.PHONY: test unittest lint
ARCH=$(shell uname -m)
GO=go
tidy:
go mod tidy
TAGS=include_nats_messaging
unittest:
$(GO) test -tags=$(TAGS) -race ./... -coverprofile=coverage.out ./...
lint:
@which golangci-lint >/dev/null || echo "WARNING: go linter not installed. To install, run make install-lint"
@if [ "z${ARCH}" = "zx86_64" ] && which golangci-lint >/dev/null ; then golangci-lint run --config .golangci.yml ; else echo "WARNING: Linting skipped (not on x86_64 or linter not installed)"; fi
install-lint:
sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.61.0
test: unittest lint
$(GO) vet ./...
gofmt -l $$(find . -type f -name '*.go'| grep -v "/vendor/")
[ "`gofmt -l $$(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ]
BENCHCNT := 5 # number of times to run each benchmark with `make bench`
bench:
go test -tags=$(TAGS) -bench=. -count $(BENCHCNT) -run=^# ./...
vendor:
go mod vendor
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/EdgexFoundry/go-mod-messaging.git
git@gitee.com:EdgexFoundry/go-mod-messaging.git
EdgexFoundry
go-mod-messaging
go-mod-messaging
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385