From 566adb7c0a0c0845e90a6e867a2c0ef5d2ada575 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 5 Jun 2024 17:24:52 -0400 Subject: fix(npm): use configured auth for tarball urls instead of scope auth (#24111) Deno was using the scope auth for the tarball urls, which is not always correct. We are going to do a release immediately for this issue. --- tests/util/server/src/npm.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/util/server/src') diff --git a/tests/util/server/src/npm.rs b/tests/util/server/src/npm.rs index 363a45d7e..66b7bddcd 100644 --- a/tests/util/server/src/npm.rs +++ b/tests/util/server/src/npm.rs @@ -165,6 +165,12 @@ fn get_npm_package( local_path: &str, package_name: &str, ) -> Result> { + let registry_hostname = if package_name == "@denotest/tarballs-privateserver2" + { + "http://localhost:4262" + } else { + registry_hostname + }; let package_folder = tests_path() .join("registry") .join(local_path) -- cgit v1.2.3