mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
more logs
This commit is contained in:
parent
43d20d86dc
commit
d288ea3b36
2 changed files with 7 additions and 0 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -3944,12 +3944,14 @@ class JavaBase {
|
|||
const availableVersions = tc
|
||||
.findAllVersions(this.toolcacheFolderName, this.architecture)
|
||||
.filter(item => item.endsWith('-ea') === !this.stable);
|
||||
console.log(`availableVersions = ${JSON.stringify(availableVersions)}`);
|
||||
const satisfiedVersions = availableVersions
|
||||
.filter(item => util_1.isVersionSatisfies(this.version, item.replace(/-ea$/, '').replace('_', '+')))
|
||||
.sort(semver_1.default.rcompare);
|
||||
if (!satisfiedVersions || satisfiedVersions.length === 0) {
|
||||
return null;
|
||||
}
|
||||
console.log(`satisfiedVersions = ${JSON.stringify(satisfiedVersions)}`);
|
||||
const javaPath = util_1.getToolcachePath(this.toolcacheFolderName, satisfiedVersions[0], this.architecture);
|
||||
if (!javaPath) {
|
||||
return null;
|
||||
|
|
|
@ -73,6 +73,8 @@ export abstract class JavaBase {
|
|||
.findAllVersions(this.toolcacheFolderName, this.architecture)
|
||||
.filter(item => item.endsWith('-ea') === !this.stable);
|
||||
|
||||
console.log(`availableVersions = ${JSON.stringify(availableVersions)}`);
|
||||
|
||||
const satisfiedVersions = availableVersions
|
||||
.filter(item => isVersionSatisfies(this.version, item.replace(/-ea$/, '').replace('_', '+')))
|
||||
.sort(semver.rcompare);
|
||||
|
@ -80,6 +82,9 @@ export abstract class JavaBase {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
console.log(`satisfiedVersions = ${JSON.stringify(satisfiedVersions)}`);
|
||||
|
||||
const javaPath = getToolcachePath(
|
||||
this.toolcacheFolderName,
|
||||
satisfiedVersions[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue