mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
tools: fix release URL computation in update-root-certs.mjs
Previously this would compute the release tag to be something like FIREFOX_134_0.2_RELEASE which would not lead to a valid URL, failing to pull the latest NSS updates from the Firefox release. It should replace all the dots with underscores to compute something like FIREFOX_134_0_2_RELEASE instead. PR-URL: https://github.com/nodejs/node/pull/56843 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
parent
fc7682ca4b
commit
1e6a6569dc
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ const getFirefoxRelease = async (version) => {
|
|||
|
||||
const getNSSVersion = async (release) => {
|
||||
const latestFirefox = release.version;
|
||||
const firefoxTag = `FIREFOX_${latestFirefox.replace('.', '_')}_RELEASE`;
|
||||
const firefoxTag = `FIREFOX_${latestFirefox.replaceAll('.', '_')}_RELEASE`;
|
||||
const tagInfoURL = `https://hg.mozilla.org/releases/mozilla-release/raw-file/${firefoxTag}/security/nss/TAG-INFO`;
|
||||
if (values.verbose) {
|
||||
console.log(`Fetching NSS tag from ${tagInfoURL}.`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue