1 Star 0 Fork 0

Hyperledger/fabric-chaincode-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
Mark S. Lewis 提交于 2024-07-21 17:23 +08:00 . Move v2 implementation to repository root
#
# SPDX-License-Identifier: Apache-2.0
#
base_dir := $(patsubst %/,%,$(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
go_bin_dir := $(shell go env GOPATH)/bin
.PHONY: test
test: lint unit-test
.PHONY: unit-test
unit-test:
cd '$(base_dir)' && \
go test -timeout 30s -race -coverprofile=cover.out ./...
.PHONY: generate
generate:
go install github.com/maxbrunsfeld/counterfeiter/v6@latest
cd '$(base_dir)' && \
go generate ./...
.PHONY: lint
lint: staticcheck golangci-lint
.PHONY: staticcheck
staticcheck:
go install honnef.co/go/tools/cmd/staticcheck@latest
cd '$(base_dir)' && \
staticcheck -f stylish ./...
.PHONY: install-golangci-lint
install-golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b '$(go_bin_dir)'
$(go_bin_dir)/golangci-lint:
$(MAKE) install-golangci-lint
.PHONY: golangci-lint
golangci-lint: $(go_bin_dir)/golangci-lint
cd '$(base_dir)' && \
golangci-lint run
.PHONY: scan
scan:
go install golang.org/x/vuln/cmd/govulncheck@latest
cd '$(base_dir)' && \
govulncheck ./...
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hyperledger/fabric-chaincode-go.git
git@gitee.com:hyperledger/fabric-chaincode-go.git
hyperledger
fabric-chaincode-go
fabric-chaincode-go
main

搜索帮助