From f1180ce1138bc2bba74a89da41a0de63067d567f Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Tue, 17 Feb 2026 13:17:07 -0600 Subject: [PATCH 1/2] Fix swift fetcher In order to check out to the temp dir, we need to pass it along with the clone command in the `-c` argument. --- internal/cmd/fetcher/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/fetcher/main.go b/internal/cmd/fetcher/main.go index 6ee98d5e8..457447105 100644 --- a/internal/cmd/fetcher/main.go +++ b/internal/cmd/fetcher/main.go @@ -183,7 +183,7 @@ func recreateSwiftPackageResolved(ctx context.Context, plugin createdPlugin) (re }() // Execute the git clone command, cloning to the tmpDir - cmd := exec.CommandContext(ctx, "sh", "-c", gitCloneCmd, "--", tmpDir) + cmd := exec.CommandContext(ctx, "sh", "-c", gitCloneCmd+" -- "+tmpDir) cmd.Dir = versionDir cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr From 2a980aedb18d79ca5731765524379a8a53cedf21 Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Tue, 17 Feb 2026 13:20:58 -0600 Subject: [PATCH 2/2] Fix lint --- internal/cmd/fetcher/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/fetcher/main.go b/internal/cmd/fetcher/main.go index 457447105..b4c104dc2 100644 --- a/internal/cmd/fetcher/main.go +++ b/internal/cmd/fetcher/main.go @@ -183,7 +183,7 @@ func recreateSwiftPackageResolved(ctx context.Context, plugin createdPlugin) (re }() // Execute the git clone command, cloning to the tmpDir - cmd := exec.CommandContext(ctx, "sh", "-c", gitCloneCmd+" -- "+tmpDir) + cmd := exec.CommandContext(ctx, "sh", "-c", gitCloneCmd+" -- "+tmpDir) //nolint:gosec // We control the arguments here. cmd.Dir = versionDir cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr