File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -64,4 +64,8 @@ curl -sL https://github.com/open-telemetry/opentelemetry-proto/archive/v${OPENTE
64
64
mkdir -p " ${protodir} /opentelemetry/proto"
65
65
cp -r opentelemetry-proto-* /opentelemetry/proto/* " ${protodir} /opentelemetry/proto"
66
66
67
+ curl -sL https://github.com/google/cel-spec/archive/v${CEL_VERSION} .tar.gz | tar xz --wildcards ' *.proto'
68
+ mkdir -p " ${protodir} /cel-spec"
69
+ cp -r cel-spec-* /proto/* " ${protodir} /cel-spec"
70
+
67
71
popd > /dev/null
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ set -o xtrace
8
8
function find_sha() {
9
9
local CONTENT=$1
10
10
local DEPENDENCY=$2
11
- echo " $CONTENT " | grep " $DEPENDENCY " -A 11 | grep -m 1 version | awk ' { print $3 }' | tr -d ' "' | tr -d " ,"
11
+ echo " $CONTENT " | grep " $DEPENDENCY " -A 11 | grep -m 1 " version = " | awk ' { print $3 }' | tr -d ' "' | tr -d " ,"
12
12
}
13
13
14
14
function find_date() {
15
15
local CONTENT=$1
16
16
local DEPENDENCY=$2
17
- echo " $CONTENT " | grep " $DEPENDENCY " -A 11 | grep -m 1 release_date | awk ' { print $3 }' | tr -d ' "' | tr -d " ,"
17
+ echo " $CONTENT " | grep " $DEPENDENCY " -A 11 | grep -m 1 " release_date = " | awk ' { print $3 }' | tr -d ' "' | tr -d " ,"
18
18
}
19
19
20
20
function find_envoy_sha_from_tag() {
@@ -45,6 +45,9 @@ XDS_DATE=$(find_date "$CURL_OUTPUT" com_github_cncf_xds)
45
45
OPENTELEMETRY_SHA=$( find_sha " $CURL_OUTPUT " opentelemetry_proto)
46
46
OPENTELEMETRY_DATE=$( find_date " $CURL_OUTPUT " opentelemetry_proto)
47
47
48
+ CEL_SHA=$( find_sha " $CURL_OUTPUT " dev_cel)
49
+ CEL_DATE=$( find_date " $CURL_OUTPUT " dev_cel)
50
+
48
51
echo -n " # Update the versions here and run update-api.sh
49
52
50
53
# envoy (source: SHA from https://github.com/envoyproxy/envoy)
@@ -56,6 +59,7 @@ PGV_VERSION=\"$PGV_GIT_SHA\" # $PGV_GIT_DATE
56
59
PROMETHEUS_SHA=\" $PROMETHEUS_SHA \" # $PROMETHEUS_DATE
57
60
OPENCENSUS_VERSION=\" $OPENCENSUS_SHA \" # $OPENCENSUS_DATE
58
61
OPENTELEMETRY_VERSION=\" $OPENTELEMETRY_SHA \" # $OPENTELEMETRY_DATE
62
+ CEL_VERSION=\" $CEL_SHA \" # $CEL_DATE
59
63
XDS_SHA=\" $XDS_SHA \" # $XDS_DATE
60
64
"
61
65
You can’t perform that action at this time.
0 commit comments