Skip to content

Commit

Permalink
fix auto-update script to handle new go modules from core (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>

Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
  • Loading branch information
rlankfo authored Jan 23, 2023
1 parent 2134d28 commit 03d26b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-to-latest-otelcol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ for manifest in $manifests; do
sed -i "s~otelcol_version.*~otelcol_version: ${latest_core_version}~" $manifest

# now, the collector gomod:
sed -i "s~gomod: go\.opentelemetry\.io/collector.*~gomod: go.opentelemetry.io/collector v${latest_core_version}~" $manifest
sed -i "s~gomod: \(go\.opentelemetry\.io/collector.*\s\).*\$~gomod: \1v${latest_core_version}~" $manifest

# and the contrib versions:
# this captures a group with the "- gomod: component-path" content, and use it plus the version to compose the line
Expand Down

0 comments on commit 03d26b8

Please sign in to comment.