diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-06-05 17:24:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 21:24:52 +0000 |
commit | 566adb7c0a0c0845e90a6e867a2c0ef5d2ada575 (patch) | |
tree | 959bd78188a6964fae3ffb8e3df97a0296c6097f /tests/util | |
parent | 0db73f6333639bf74a9c12dfe779287623891ab7 (diff) |
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.
Diffstat (limited to 'tests/util')
-rw-r--r-- | tests/util/server/src/npm.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<Option<CustomNpmPackage>> { + 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) |