Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update-all-otel-deps target in Makefile #5434

Merged
merged 3 commits into from
May 2, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions Makefile
Expand Up @@ -287,6 +287,17 @@ add-tags: | $(MULTIMOD)
@[ "${MODSET}" ] || ( echo ">> env var MODSET is not set"; exit 1 )
$(MULTIMOD) verify && $(MULTIMOD) tag -m ${MODSET} -c ${COMMIT}

.PHONY: update-all-otel-deps
update-all-otel-deps:
@[ "${GITSHA}" ] || ( echo ">> env var GITSHA is not set"; exit 1 )
@echo "Updating OpenTelemetry dependencies to ${GITSHA}"
@set -e; \
for dir in $(OTEL_GO_MOD_DIRS); do \
echo "Updating OpenTelemetry dependencies in $${dir}"; \
(cd $${dir} \
&& grep -v indirect go.mod | grep -o 'go.opentelemetry.io/otel\S*' | xargs -I {} -n1 $(GO) get {}@${GITSHA}); \
XSAM marked this conversation as resolved.
Show resolved Hide resolved
done

# The source directory for opentelemetry-configuration schema.
OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_SRC_DIR=tmp/opentelememetry-configuration

Expand Down