mirror of
https://github.com/actions/setup-java.git
synced 2026-09-10 20:54:22 +02:00
Merge branch 'main' into copilot/macos-self-hosted-runners-fix
This commit is contained in:
Vendored
+26
-1
@@ -35747,6 +35747,7 @@ __nccwpck_require__.d(__webpack_exports__, {
|
||||
var cleanup_java_core = __nccwpck_require__(3838);
|
||||
// EXTERNAL MODULE: external "fs"
|
||||
var external_fs_ = __nccwpck_require__(9896);
|
||||
var external_fs_default = /*#__PURE__*/__nccwpck_require__.n(external_fs_);
|
||||
// EXTERNAL MODULE: external "path"
|
||||
var external_path_ = __nccwpck_require__(6928);
|
||||
// EXTERNAL MODULE: external "crypto"
|
||||
@@ -35892,6 +35893,30 @@ async function verifyPackageSignature(archivePath, signatureUrl, publicKeyConten
|
||||
var constants = __nccwpck_require__(7242);
|
||||
// EXTERNAL MODULE: external "url"
|
||||
var external_url_ = __nccwpck_require__(7016);
|
||||
;// CONCATENATED MODULE: ./src/is-main-module.ts
|
||||
|
||||
|
||||
function isMainModule(moduleUrl) {
|
||||
const entrypoint = process.argv[1];
|
||||
if (!entrypoint || entrypoint === '-') {
|
||||
return false;
|
||||
}
|
||||
let entrypointPath;
|
||||
try {
|
||||
entrypointPath = external_fs_default().realpathSync(entrypoint);
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof Error &&
|
||||
'code' in error &&
|
||||
(error.code === 'ENOENT' || error.code === 'ENOTDIR')) {
|
||||
return false;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
// Resolve both paths for runtimes using --preserve-symlinks-main.
|
||||
return entrypointPath === external_fs_default().realpathSync((0,external_url_.fileURLToPath)(moduleUrl));
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./src/cleanup-java.ts
|
||||
|
||||
|
||||
@@ -35959,7 +35984,7 @@ async function run() {
|
||||
await cleanup_java_removeGpgHome();
|
||||
await ignoreError(saveCaches());
|
||||
}
|
||||
if (process.argv[1] === (0,external_url_.fileURLToPath)(import.meta.url)) {
|
||||
if (isMainModule(import.meta.url)) {
|
||||
run();
|
||||
}
|
||||
else {
|
||||
|
||||
Vendored
+26
-1
@@ -36354,6 +36354,30 @@ function configureProblemMatcher(matcherPath) {
|
||||
|
||||
// EXTERNAL MODULE: ./src/toolchain-ids.ts
|
||||
var toolchain_ids = __nccwpck_require__(7083);
|
||||
;// CONCATENATED MODULE: ./src/is-main-module.ts
|
||||
|
||||
|
||||
function isMainModule(moduleUrl) {
|
||||
const entrypoint = process.argv[1];
|
||||
if (!entrypoint || entrypoint === '-') {
|
||||
return false;
|
||||
}
|
||||
let entrypointPath;
|
||||
try {
|
||||
entrypointPath = external_fs_default().realpathSync(entrypoint);
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof Error &&
|
||||
'code' in error &&
|
||||
(error.code === 'ENOENT' || error.code === 'ENOTDIR')) {
|
||||
return false;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
// Resolve both paths for runtimes using --preserve-symlinks-main.
|
||||
return entrypointPath === external_fs_default().realpathSync((0,external_url_.fileURLToPath)(moduleUrl));
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./src/setup-java.ts
|
||||
|
||||
|
||||
@@ -36364,6 +36388,7 @@ var toolchain_ids = __nccwpck_require__(7083);
|
||||
|
||||
|
||||
|
||||
|
||||
async function run() {
|
||||
const versions = setup_java_core/* getMultilineInput */.q3(constants/* INPUT_JAVA_VERSION */.QM);
|
||||
let distributionName = setup_java_core/* getInput */.V4(constants/* INPUT_DISTRIBUTION */.g_);
|
||||
@@ -36480,7 +36505,7 @@ async function validateCacheInput(cache) {
|
||||
function settle(promise) {
|
||||
return promise.then(value => ({ status: 'fulfilled', value }), reason => ({ status: 'rejected', reason }));
|
||||
}
|
||||
if (process.argv[1] === (0,external_url_.fileURLToPath)(import.meta.url)) {
|
||||
if (isMainModule(import.meta.url)) {
|
||||
run();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user