From bce7f544acb9fe0bcb4e0d0bb5612bf3bbeefd30 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 9 Jul 2025 12:00:37 +0100 Subject: [PATCH] Revert "[LOCAL] Add more logging around computeNightlyTarballURL" This reverts commit 1a6887bd70cdefb8fbc421467de841ece74d5c6b. --- packages/react-native/scripts/ios-prebuild/utils.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/react-native/scripts/ios-prebuild/utils.js b/packages/react-native/scripts/ios-prebuild/utils.js index deed11a1541..d9dec121dd5 100644 --- a/packages/react-native/scripts/ios-prebuild/utils.js +++ b/packages/react-native/scripts/ios-prebuild/utils.js @@ -65,13 +65,10 @@ async function computeNightlyTarballURL( artifactCoordinate /*: string */, artifactName /*: string */, ) /*: Promise */ { - const urlLog = createLogger('NightlyURL'); const xmlUrl = `https://central.sonatype.com/repository/maven-snapshots/com/facebook/react/${artifactCoordinate}/${version}-SNAPSHOT/maven-metadata.xml`; - urlLog(`Attempting to download maven-metadata.xml from: ${xmlUrl}...`); const response = await fetch(xmlUrl); if (!response.ok) { - urlLog(`Downloading maven-metadata.xml failed!`, 'error'); return ''; } const xmlText = await response.text(); @@ -79,7 +76,6 @@ async function computeNightlyTarballURL( // Extract the block const snapshotMatch = xmlText.match(/([\s\S]*?)<\/snapshot>/); if (!snapshotMatch) { - urlLog(`Could not find a tag that matches the regex!`, 'error'); return ''; } const snapshotContent = snapshotMatch[1]; @@ -87,7 +83,6 @@ async function computeNightlyTarballURL( // Extract from the snapshot block const timestampMatch = snapshotContent.match(/(.*?)<\/timestamp>/); if (!timestampMatch) { - urlLog(`Could not find a tag inside that matches the regex!`, 'error'); return ''; } const timestamp = timestampMatch[1]; @@ -97,14 +92,12 @@ async function computeNightlyTarballURL( /(.*?)<\/buildNumber>/, ); if (!buildNumberMatch) { - urlLog(`Could not find a tag that matches the regex!`, 'error'); return ''; } const buildNumber = buildNumberMatch[1]; const fullVersion = `${version}-${timestamp}-${buildNumber}`; const finalUrl = `https://central.sonatype.com/repository/maven-snapshots/com/facebook/react/${artifactCoordinate}/${version}-SNAPSHOT/${artifactCoordinate}-${fullVersion}-${artifactName}`; - urlLog(`Final artifact URL found: ${finalUrl}`); return finalUrl; }