|
|
@ -4582,9 +4582,6 @@ function downloadGo(versionSpec, stable) {
|
|
|
|
let toolPath;
|
|
|
|
let toolPath;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
let match = yield findMatch(versionSpec, stable);
|
|
|
|
let match = yield findMatch(versionSpec, stable);
|
|
|
|
if (match) {
|
|
|
|
|
|
|
|
console.log('match', match.version);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (match) {
|
|
|
|
if (match) {
|
|
|
|
// download
|
|
|
|
// download
|
|
|
|
core_1.debug(`match ${match.version}`);
|
|
|
|
core_1.debug(`match ${match.version}`);
|
|
|
@ -4622,7 +4619,6 @@ function findMatch(versionSpec, stable) {
|
|
|
|
let goFile;
|
|
|
|
let goFile;
|
|
|
|
for (let i = 0; i < candidates.length; i++) {
|
|
|
|
for (let i = 0; i < candidates.length; i++) {
|
|
|
|
let candidate = candidates[i];
|
|
|
|
let candidate = candidates[i];
|
|
|
|
console.log(JSON.stringify(candidate, null, 2));
|
|
|
|
|
|
|
|
let version = candidate.version.replace('go', '');
|
|
|
|
let version = candidate.version.replace('go', '');
|
|
|
|
// 1.13.0 is advertised as 1.13 preventing being able to match exactly 1.13.0
|
|
|
|
// 1.13.0 is advertised as 1.13 preventing being able to match exactly 1.13.0
|
|
|
|
// since a semver of 1.13 would match latest 1.13
|
|
|
|
// since a semver of 1.13 would match latest 1.13
|
|
|
|