Skip to content

Commit 92f4403

Browse files
committed
make protobuf optional
1 parent 315c34c commit 92f4403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus-metrics-exposition-formats/generate-protobuf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mkdir -p $TARGET_DIR
1717
rm -rf $PROTO_DIR || true
1818
mkdir -p $PROTO_DIR
1919

20-
OLD_PACKAGE=$(sed -nE 's/import (io.prometheus.metrics.expositionformats.generated.*).Metrics;/\1/p' src/main/java/io/prometheus/metrics/expositionformats/PrometheusProtobufWriter.java)
20+
OLD_PACKAGE=$(sed -nE 's/import (io.prometheus.metrics.expositionformats.generated.*).Metrics;/\1/p' src/main/java/io/prometheus/metrics/expositionformats/internal/PrometheusProtobufWriterImpl.java)
2121
PACKAGE="io.prometheus.metrics.expositionformats.generated.com_google_protobuf_${PROTOBUF_VERSION_STRING}"
2222

2323
if [[ $OLD_PACKAGE != "$PACKAGE" ]]; then

0 commit comments

Comments
 (0)