You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# format formats the code (including imports format).
75
+
.PHONY: format
76
+
format: $(GOIMPORTS) deps
77
+
@echo ">> formatting code"
78
+
@$(GOIMPORTS) -w $(FILES)
42
79
43
-
.PHONY: crossbuild
44
-
crossbuild: deps promu
45
-
@echo ">> crossbuilding all binaries"
46
-
$(PROMU) crossbuild -v
80
+
# proto generates golang files from Thanos proto files.
81
+
.PHONY: proto
82
+
proto:
83
+
@go get -u github.com/gogo/protobuf/protoc-gen-gogofast
84
+
@./scripts/genproto.sh
47
85
86
+
# tarball builds release tarball.
48
87
.PHONY: tarball
49
-
tarball: promu
88
+
tarball: $(PROMU)
50
89
@echo ">> building release tarball"
51
90
$(PROMU) tarball --prefix $(PREFIX)$(BIN_DIR)
52
91
53
-
$(GOIMPORTS):
54
-
@echo ">> fetching goimports"
55
-
@go get -u golang.org/x/tools/cmd/goimports
56
-
57
-
.PHONY: promu
58
-
promu:
59
-
@echo ">> fetching promu"
60
-
GOOS= GOARCH= go get -u github.com/prometheus/promu
92
+
# test runs all Thanos golang tests.
93
+
.PHONY: test
94
+
test: test-deps
95
+
@echo ">> running all tests. Do export THANOS_SKIP_GCS_TESTS="true" or/and export THANOS_SKIP_S3_AWS_TESTS="true" if you want to skip e2e tests against real store buckets"
@go get -u github.com/prometheus/prometheus/cmd/prometheus
69
104
@go get -u github.com/prometheus/alertmanager/cmd/alertmanager
70
105
71
-
proto:
72
-
@go get -u github.com/gogo/protobuf/protoc-gen-gogofast
73
-
@./scripts/genproto.sh
106
+
# vet vets the code.
107
+
.PHONY: vet
108
+
vet:
109
+
@echo ">> vetting code"
110
+
@go vet ./...
74
111
75
-
test: test-deps
76
-
@echo ">> running all tests. Do export THANOS_SKIP_GCS_TESTS="true" or/and export THANOS_SKIP_S3_AWS_TESTS="true" if you want to skip e2e tests against real store buckets"
0 commit comments