1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-11-28 08:38:51 +02:00

Fix the examples target info messaging (#1676)

The echo for the target was copied from other targets that use `dir` as
an iteration variable which is not what this target uses. That means
that the empty variable `dir` is unexpanded and the unhelpful message of
"build /..." is echoed. This updates the iteration variable to match
other targets and fixes the info messaging.
This commit is contained in:
Tyler Yahn 2021-03-08 19:59:41 +00:00 committed by GitHub
parent a3aa9fdab0
commit 76aa924e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,9 +62,9 @@ tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(STRINGER) $(TOOLS)/gojq
.PHONY: examples generate build
examples:
@set -e; for ex in $(EXAMPLES); do \
@set -e; for dir in $(EXAMPLES); do \
echo "$(GO) build $${dir}/..."; \
(cd "$${ex}" && \
(cd "$${dir}" && \
$(GO) build .); \
done