[chore] Move to latest weaver release. (#1044)

This commit is contained in:
Josh Suereth 2024-05-16 18:51:06 -04:00 committed by GitHub
parent 04bdbba20f
commit 1e75094931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ CHLOGGEN_CONFIG := .chloggen/config.yaml
# see https://github.com/open-telemetry/build-tools/releases for semconvgen updates # see https://github.com/open-telemetry/build-tools/releases for semconvgen updates
# Keep links in model/README.md and .vscode/settings.json in sync! # Keep links in model/README.md and .vscode/settings.json in sync!
SEMCONVGEN_VERSION=0.24.0 SEMCONVGEN_VERSION=0.24.0
WEAVER_VERSION=latest WEAVER_VERSION=0.2.0
# TODO: add `yamllint` step to `all` after making sure it works on Mac. # TODO: add `yamllint` step to `all` after making sure it works on Mac.
.PHONY: all .PHONY: all
@ -95,7 +95,7 @@ yamllint:
# Generate markdown tables from YAML definitions # Generate markdown tables from YAML definitions
.PHONY: table-generation .PHONY: table-generation
table-generation: table-generation:
docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec -v $(PWD)/templates:/weaver/templates --pull=always \ docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec -v $(PWD)/templates:/weaver/templates \
otel/weaver:${WEAVER_VERSION} registry update-markdown \ otel/weaver:${WEAVER_VERSION} registry update-markdown \
--registry=/source \ --registry=/source \
--attribute-registry-base-url=/docs/attributes-registry \ --attribute-registry-base-url=/docs/attributes-registry \
@ -106,7 +106,7 @@ table-generation:
# Generate attribute registry markdown. # Generate attribute registry markdown.
.PHONY: attribute-registry-generation .PHONY: attribute-registry-generation
attribute-registry-generation: attribute-registry-generation:
docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec -v $(PWD)/templates:/weaver/templates --pull=always \ docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec -v $(PWD)/templates:/weaver/templates \
otel/weaver:${WEAVER_VERSION} registry generate \ otel/weaver:${WEAVER_VERSION} registry generate \
--registry=/source \ --registry=/source \
--templates=/weaver/templates \ --templates=/weaver/templates \
@ -117,7 +117,7 @@ attribute-registry-generation:
# Check if current markdown tables differ from the ones that would be generated from YAML definitions (weaver). # Check if current markdown tables differ from the ones that would be generated from YAML definitions (weaver).
.PHONY: table-check .PHONY: table-check
table-check: table-check:
docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec -v $(PWD)/templates:/weaver/templates --pull=always \ docker run --rm -v $(PWD)/model:/source -v $(PWD)/docs:/spec -v $(PWD)/templates:/weaver/templates \
otel/weaver:${WEAVER_VERSION} registry update-markdown \ otel/weaver:${WEAVER_VERSION} registry update-markdown \
--registry=/source \ --registry=/source \
--attribute-registry-base-url=/docs/attributes-registry \ --attribute-registry-base-url=/docs/attributes-registry \