@@ -45,25 +45,27 @@ ifndef VERSION
4545 @exit 1
4646endif
4747
48+ RELEASE_MODULES := go/pkg go/grpc go/otel go/pdata
49+ ALL_MODULES += $(RELEASE_MODULES ) stefc stefc/generator/testdata examples/jsonl examples/profile otelcol benchmarks
50+
4851.PHONY : prepver
4952prepver : verifyver
5053 echo Updating to version ${VERSION}
51- cd go/grpc && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION} && go mod tidy
54+ cd go/grpc && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION}
5255 cd go/otel && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION} \
53- && go mod edit -require=github.com/splunk/stef/go/grpc@${VERSION} && go mod tidy
56+ && go mod edit -require=github.com/splunk/stef/go/grpc@${VERSION}
5457 cd go/pdata && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION} \
55- && go mod edit -require=github.com/splunk/stef/go/otel@${VERSION} && go mod tidy
56- cd stefc && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION} && go mod tidy
57- cd examples/jsonl && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION} && go mod tidy
58- cd otelcol && go mod tidy
59- cd benchmarks && go mod tidy
60-
61- MODULES := go/pkg go/grpc go/otel go/pdata
58+ && go mod edit -require=github.com/splunk/stef/go/otel@${VERSION}
59+ cd stefc && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION}
60+ cd stefc/generator/testdata && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION}
61+ cd examples/jsonl && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION}
62+ cd examples/profile && go mod edit -require=github.com/splunk/stef/go/pkg@${VERSION}
63+ $(foreach gomod,$(ALL_MODULES ) ,$(call exec-command,cd $(gomod ) && go mod tidy) )
6264
6365.PHONY : releasever
6466releasever : verifyver
6567 echo Tagging version $(VERSION )
66- $(foreach gomod,$(MODULES ) ,$(call exec-command,git tag $(gomod ) /$(VERSION ) && git push origin $(gomod ) /$(VERSION ) ) )
68+ $(foreach gomod,$(RELEASE_MODULES ) ,$(call exec-command,git tag $(gomod ) /$(VERSION ) && git push origin $(gomod ) /$(VERSION ) ) )
6769
6870# Docs validation targets
6971.PHONY : docs-validate docs-validate-html docs-validate-css docs-check-links docs-install-deps
0 commit comments