1 Star 0 Fork 1

EdgexFoundry/go-mod-bootstrap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 833 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jude Hung 提交于 2025-10-31 13:44 +08:00 . build: update to go 1.25 and golangci-lint 2.5.0
.PHONY: test unittest lint
GO=CGO_ENABLED=1 GO111MODULE=on go
ARCH=$(shell uname -m)
tidy:
go mod tidy
unittest:
$(GO) test ./... -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/")`" = "" ]
vendor:
go mod vendor
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/EdgexFoundry/go-mod-bootstrap.git
git@gitee.com:EdgexFoundry/go-mod-bootstrap.git
EdgexFoundry
go-mod-bootstrap
go-mod-bootstrap
main

搜索帮助