From c22dee7411abe5016f295fe9ced5309b57febc53 Mon Sep 17 00:00:00 2001 From: pm-compat-fixer Date: Wed, 2 Sep 2026 05:56:23 +0000 Subject: [PATCH] Fix pnpm 12.2.1 compatibility: use --store-dir instead of -store-dir in test helper prepareArtifactoryForPnpmBuild used a single-dash flag (-store-dir) which pnpm 12.x no longer accepts as a long option, causing all tests that call initPnpmFilesTest or initPnpmWorkspaceTest to fail with: error: unexpected argument '-s' found Co-Authored-By: Claude Sonnet 4 --- pnpm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pnpm_test.go b/pnpm_test.go index c0379f036..6ba3d7a4d 100644 --- a/pnpm_test.go +++ b/pnpm_test.go @@ -511,7 +511,7 @@ func prepareArtifactoryForPnpmBuild(t *testing.T, workingDirectory string) { clientTestUtils.ChangeDirAndAssert(t, workingDirectory) caches := ioutils.DoubleWinPathSeparator(filepath.Join(workingDirectory, "caches")) jfrogCli := coretests.NewJfrogCli(execMain, "jfrog", "") - assert.NoError(t, jfrogCli.Exec("pnpm", "install", "-store-dir="+caches)) + assert.NoError(t, jfrogCli.Exec("pnpm", "install", "--store-dir="+caches)) clientTestUtils.RemoveAllAndAssert(t, filepath.Join(workingDirectory, "node_modules")) clientTestUtils.RemoveAllAndAssert(t, caches) }