Skip to content

Commit

Permalink
[chore] add version check for semconv module (#9581)
Browse files Browse the repository at this point in the history
* [chore] add version check for semconv module

Fixes #9396

* Update check-collector-module-version.sh

Co-authored-by: Bogdan Drutu <lazy@splunk.com>
  • Loading branch information
Alex Boten and Bogdan Drutu authored Apr 29, 2022
1 parent 8db2f32 commit 32c7d5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scripts/check-collector-module-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ check_collector_versions_correct() {
COLLECTOR_MODULE="go.opentelemetry.io/collector "

COLLECTOR_MODEL_PDATA="go.opentelemetry.io/collector/pdata"
COLLECTOR_MODEL_PDATA="go.opentelemetry.io/collector/semconv"
MAIN_MOD_FILE="./go.mod"
COLLECTOR_MOD_VERSION=$(get_collector_version "$COLLECTOR_MODULE" "$MAIN_MOD_FILE")

Expand All @@ -80,3 +81,4 @@ check_collector_versions_correct "$COLLECTOR_MODULE" "$COLLECTOR_MOD_VERSION"

# Check the collector model module version in each of the module files
check_collector_versions_correct "$COLLECTOR_MODEL_PDATA" "$COLLECTOR_MOD_VERSION"
check_collector_versions_correct "$COLLECTOR_MODEL_SEMCONV" "$COLLECTOR_MOD_VERSION"

0 comments on commit 32c7d5e

Please sign in to comment.