mirror of
https://github.com/actions/setup-go.git
synced 2026-04-06 04:39:24 +00:00
fix bug in JSON with custom URL
This commit is contained in:
parent
9142921940
commit
0980fb1938
3 changed files with 21 additions and 6 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue