1 Star 0 Fork 0

EdgexFoundry/go-mod-core-contracts

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

搜索帮助