Skip to content

Commit 94b15c2

Browse files
committed
tools: unlock ngtcp2 version updates
It was fixed to 1.15.1 in #59946 without explanation.
1 parent 55600e6 commit 94b15c2

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

tools/dep_updaters/update-ngtcp2.sh

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@ DEPS_DIR="$BASE_DIR/deps"
1010
# shellcheck disable=SC1091
1111
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1212

13-
NEW_VERSION="1.15.1"
14-
# NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
15-
# const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases',
16-
# process.env.GITHUB_TOKEN && {
17-
# headers: {
18-
# "Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
19-
# },
20-
# });
21-
# if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
22-
# const releases = await res.json()
23-
# const { tag_name } = releases.at(0);
24-
# console.log(tag_name.replace('v', ''));
25-
# EOF
26-
# )"
13+
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
14+
const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases',
15+
process.env.GITHUB_TOKEN && {
16+
headers: {
17+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
18+
},
19+
});
20+
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
21+
const releases = await res.json()
22+
const { tag_name } = releases.at(0);
23+
console.log(tag_name.replace('v', ''));
24+
EOF
25+
)"
2726

2827
NGTCP2_VERSION_H="$DEPS_DIR/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h"
2928

0 commit comments

Comments
 (0)