forked from hashicorp/go-kms-wrapping
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
59 lines (54 loc) · 2.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
test:
go test ./... $(TESTARGS)
cd entropy && go test ./... $(TESTARGS)
cd plugin && go test ./... $(TESTARGS)
cd wrappers/aead && go test ./... $(TESTARGS)
cd wrappers/alicloudkms && go test ./... $(TESTARGS)
cd wrappers/awskms && go test ./... $(TESTARGS)
cd wrappers/azurekeyvault && go test ./... $(TESTARGS)
cd wrappers/gcpckms && go test ./... $(TESTARGS)
cd wrappers/huaweicloudkms && go test ./... $(TESTARGS)
cd wrappers/ocikms && go test ./... $(TESTARGS)
cd wrappers/tencentcloudkms && go test ./... $(TESTARGS)
cd wrappers/transit && go test ./... $(TESTARGS)
.PHONY: proto
proto:
find . -type f -name "*.pb.go" -delete
buf generate
buf format -w
# inject classification tags (see: https://github.com/hashicorp/go-eventlogger/tree/main/filters/encrypt)
@protoc-go-inject-tag -input=./github.com.openbao.go.kms.wrapping.v2.types.pb.go
.PHONY: tools
tools:
go install github.com/favadi/[email protected]
go install github.com/bufbuild/buf/cmd/[email protected]
.PHONY: tidy-all
tidy-all:
cd entropy && go mod tidy
cd examples/plugin-cli && go mod tidy
cd examples/plugin-cli/plugins/mains/transit && go mod tidy
cd plugin && go mod tidy
cd wrappers/aead && go mod tidy
cd wrappers/alicloudkms && go mod tidy
cd wrappers/awskms && go mod tidy
cd wrappers/azurekeyvault && go mod tidy
cd wrappers/gcpckms && go mod tidy
cd wrappers/huaweicloudkms && go mod tidy
cd wrappers/ocikms && go mod tidy
cd wrappers/tencentcloudkms && go mod tidy
cd wrappers/transit && go mod tidy
go mod tidy
.PHONY: generate-all
generate-all:
cd entropy && GOARCH= GOOS= go generate ./...
cd plugin && GOARCH= GOOS= go generate ./...
cd wrappers/aead && GOARCH= GOOS= go generate ./...
cd wrappers/alicloudkms && GOARCH= GOOS= go generate ./...
cd wrappers/awskms && GOARCH= GOOS= go generate ./...
cd wrappers/azurekeyvault && GOARCH= GOOS= go generate ./...
cd wrappers/gcpckms && GOARCH= GOOS= go generate ./...
cd wrappers/huaweicloudkms && GOARCH= GOOS= go generate ./...
cd wrappers/ocikms && GOARCH= GOOS= go generate ./...
cd wrappers/tencentcloudkms && GOARCH= GOOS= go generate ./...
cd wrappers/transit && GOARCH= GOOS= go generate ./...
GOARCH= GOOS= go generate ./...