fix bug in JSON with custom URL

This commit is contained in:
George Adams 2026-03-11 17:58:37 +00:00
parent 9142921940
commit 0980fb1938
3 changed files with 21 additions and 6 deletions

View file

@ -1136,6 +1136,10 @@ use .
`Using custom Go download base URL: ${customBaseUrl}`
);
expect(logSpy).toHaveBeenCalledWith('Install from custom download URL');
// Version listing should use custom base URL, not go.dev
expect(getSpy).toHaveBeenCalledWith(
`${customBaseUrl}/?mode=json&include=all`
);
expect(dlSpy).toHaveBeenCalled();
expect(extractTarSpy).toHaveBeenCalled();
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`);