1 Star 0 Fork 1

EdgexFoundry/go-mod-messaging

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Makefile 998 Bytes
Copy Edit Raw Blame History
Jude Hung authored 2025-10-30 19:05 +08:00 . build: update to go 1.25 and golanci-lint 2.5.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 v2.5.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

Search