From f7cd88dc6a07aa2c74a2d7551e537a7caa37baff Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 21 Sep 2026 21:32:47 +0200 Subject: [PATCH] test: tolerate hosted git transport fallback (#15219) Request the pinned archive explicitly in the patch test that asserts a tarball choice. Permit the same pinned ajv-keywords commit over the Git transport in the license test when the public-repository probe cannot confirm archive availability. --- pnpm11/deps/compliance/commands/test/licenses/index.ts | 1 + pnpm11/patching/commands/test/patch.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pnpm11/deps/compliance/commands/test/licenses/index.ts b/pnpm11/deps/compliance/commands/test/licenses/index.ts index 65259761b4..72cfea4d1e 100644 --- a/pnpm11/deps/compliance/commands/test/licenses/index.ts +++ b/pnpm11/deps/compliance/commands/test/licenses/index.ts @@ -315,6 +315,7 @@ test('pnpm licenses should work with git protocol dep that have peerDependencies dir: workspaceDir, allowBuilds: { 'ajv-keywords@https://codeload.github.com/ajv-validator/ajv-keywords/tar.gz/a11389b4d1934d360fb2a24dd920ec597295c8fc': true, + 'ajv-keywords@git+https://github.com/ajv-validator/ajv-keywords.git#a11389b4d1934d360fb2a24dd920ec597295c8fc': true, }, pnpmHomeDir: '', storeDir, diff --git a/pnpm11/patching/commands/test/patch.test.ts b/pnpm11/patching/commands/test/patch.test.ts index e73cb9ae58..76c64272d6 100644 --- a/pnpm11/patching/commands/test/patch.test.ts +++ b/pnpm11/patching/commands/test/patch.test.ts @@ -1000,7 +1000,7 @@ describe('patch and commit in workspaces', () => { dependencies: { 'is-positive': '1.0.0', 'project-1': '1', - hi: 'github:zkochan/hi#4cdebec76b7b9d1f6e219e06c42d92a6b8ea60cd', + hi: 'https://codeload.github.com/zkochan/hi/tar.gz/4cdebec76b7b9d1f6e219e06c42d92a6b8ea60cd', }, }, ])