From 316c2afe38d34a352474b852b95195be266709cb Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sun, 22 Feb 2026 14:57:58 +0100 Subject: [PATCH] fix(coding-agent): fix git-update test using unparseable git source The test used 'github.com/test/extension' as the git source, but parseGitUrl() requires a 'git:' prefix for bare hostnames. Changed to 'git:github.com/test/extension' so the source is correctly parsed as a git type and update() actually runs. --- packages/coding-agent/test/git-update.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/coding-agent/test/git-update.test.ts b/packages/coding-agent/test/git-update.test.ts index 169bc937..c8c2cd68 100644 --- a/packages/coding-agent/test/git-update.test.ts +++ b/packages/coding-agent/test/git-update.test.ts @@ -53,8 +53,10 @@ describe("DefaultPackageManager git update", () => { let settingsManager: SettingsManager; let packageManager: DefaultPackageManager; - // Git source that maps to our installed directory structure - const gitSource = "github.com/test/extension"; + // Git source that maps to our installed directory structure. + // Must use "git:" prefix so parseSource() treats it as a git source + // (bare "github.com/..." is not recognized as a git URL). + const gitSource = "git:github.com/test/extension"; beforeEach(() => { tempDir = join(tmpdir(), `git-update-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);