Skip to content

Commit 85a6542

Browse files
authored
Merge pull request #136 from smallstep/mariano/gcp-organization-id
Add organization id to GCP provisioner
2 parents 59a14cb + 755d87c commit 85a6542

File tree

11 files changed

+1881
-1255
lines changed

11 files changed

+1881
-1255
lines changed

Makefile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ GEN_GRPC_BIN ?= protoc-gen-go-grpc
1212
GEN_GRPC_MIN_VERSION ?= 1.5.1
1313
GEN_GRPC_VERSION ?= $(shell $(GEN_GRPC_BIN) --version | awk -F ' ' '{print $$NF}')
1414

15+
# Go tools
16+
GOIMPORTS=golang.org/x/tools/cmd/goimports
17+
GOLANGCI_LINT=github.com/golangci/golangci-lint/v2/cmd/golangci-lint
18+
GOTESTSUM=gotest.tools/gotestsum
19+
GOVULNCHECK=golang.org/x/vuln/cmd/govulncheck
20+
1521
all: lint generate test
1622

1723
ci: test
@@ -29,9 +35,6 @@ build: ;
2935
#########################################
3036

3137
bootstra%:
32-
$Q curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.49.0
33-
$Q go install golang.org/x/vuln/cmd/govulncheck@latest
34-
$Q go install gotest.tools/gotestsum@v1.8.1
3538
$Q go install -mod=readonly google.golang.org/protobuf/cmd/protoc-gen-go
3639
$Q go install -mod=readonly google.golang.org/grpc/cmd/protoc-gen-go-grpc
3740

@@ -42,10 +45,10 @@ bootstra%:
4245
#########################################
4346

4447
test:
45-
$Q $(GOFLAGS) gotestsum -- -coverpkg=./... -coverprofile=coverage.out -covermode=atomic ./...
48+
$Q $(GOFLAGS) go tool $(GOTESTSUM) -- -coverpkg=./... -coverprofile=coverage.out -covermode=atomic ./...
4649

4750
race:
48-
$Q $(GOFLAGS) gotestsum -- -race ./...
51+
$Q $(GOFLAGS) go tool $(GOTESTSUM) -- -race ./...
4952

5053
.PHONY: test race
5154

@@ -54,12 +57,12 @@ race:
5457
#########################################
5558

5659
fmt:
57-
$Q goimports -local github.com/golangci/golangci-lint -l -w $(SRC)
60+
$Q go tool $(GOIMPORTS) -local github.com/smallstep/linkedca -l -w $(SRC)
5861

5962
lint: SHELL:=/bin/bash
6063
lint:
61-
$Q LOG_LEVEL=error golangci-lint run --config <(curl -s https://raw.githubusercontent.com/smallstep/workflows/master/.golangci.yml) --timeout=30m
62-
$Q govulncheck ./...
64+
$Q LOG_LEVEL=error go tool $(GOLANGCI_LINT) run --config <(curl -s https://raw.githubusercontent.com/smallstep/workflows/master/.golangci.yml) --timeout=30m
65+
$Q go tool $(GOVULNCHECK) ./...
6366

6467
.PHONY: fmt lint
6568

admin.pb.go

Lines changed: 25 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)