Printing versions for debug purposes

This commit is contained in:
Sergey-Murtazin 2021-11-28 17:25:18 +03:00
parent 54cc82618b
commit 6115b0aebf
2 changed files with 4669 additions and 3 deletions

4670
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -203,6 +203,8 @@ export async function findMatch(
let candidate: IGoVersion = candidates[i]; let candidate: IGoVersion = candidates[i];
let version = makeSemver(candidate.version); let version = makeSemver(candidate.version);
core.info(`Candidate version: ${candidate.version}; Semver version: ${version}` )
// 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
let parts: string[] = version.split('.'); let parts: string[] = version.split('.');