From 00e791a674e91fcfbec5cbfeb8167771a04d4c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraci=20Paix=C3=A3o=20Kr=C3=B6hling?= Date: Thu, 15 Sep 2022 14:42:15 -0300 Subject: [PATCH] Auto-update builder on Makefile (#27) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And bump the Makefile to the latest. Fixes #26 Signed-off-by: Juraci Paixão Kröhling Signed-off-by: Juraci Paixão Kröhling --- Makefile | 2 +- scripts/update-to-latest-otelcol.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae54495..29125f5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ GO ?= go -OTELCOL_BUILDER_VERSION ?= 0.59.0 +OTELCOL_BUILDER_VERSION ?= 0.60.0 OTELCOL_BUILDER_DIR ?= ${HOME}/bin OTELCOL_BUILDER ?= ${OTELCOL_BUILDER_DIR}/ocb diff --git a/scripts/update-to-latest-otelcol.sh b/scripts/update-to-latest-otelcol.sh index dd856bd..0b8ddba 100755 --- a/scripts/update-to-latest-otelcol.sh +++ b/scripts/update-to-latest-otelcol.sh @@ -74,6 +74,9 @@ for manifest in $manifests; do sed -i "s~\(.*github.com/open-telemetry/opentelemetry-collector-contrib/.*\s\).*~\1v${latest_contrib_version}~" $manifest done +# Update the Makefile +sed -i "s/^OTELCOL_BUILDER_VERSION.*/OTELCOL_BUILDER_VERSION ?= ${latest_core_version}/" Makefile + git diff --quiet $manifests if [[ $? == 0 ]]; then echo "We are already at the latest versions."