Skip to content

Commit

Permalink
Merge pull request #109 from frenchy64/cache-hang
Browse files Browse the repository at this point in the history
Force process exit to avoid cache hang
  • Loading branch information
DeLaGuardo authored Nov 5, 2024
2 parents bc7570e + 2d31e3e commit b7a20d4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.post = exports.pre = exports.main = void 0;
const core = __importStar(__nccwpck_require__(2186));
Expand All @@ -898,6 +901,7 @@ const cljstyle = __importStar(__nccwpck_require__(2661));
const zprint = __importStar(__nccwpck_require__(982));
const utils = __importStar(__nccwpck_require__(918));
const cache = __importStar(__nccwpck_require__(3782));
const node_process_1 = __importDefault(__nccwpck_require__(7742));
function main() {
return __awaiter(this, void 0, void 0, function* () {
try {
Expand Down Expand Up @@ -1030,10 +1034,12 @@ function post() {
tools.push(cache.save(zprint.identifier, ZPRINT_VERSION));
}
yield Promise.all(tools);
node_process_1.default.exit(0);
}
catch (err) {
const error = err instanceof Error ? err.message : String(err);
core.debug(error);
node_process_1.default.exit(1);
}
});
}
Expand Down Expand Up @@ -86845,6 +86851,14 @@ module.exports = require("node:events");

/***/ }),

/***/ 7742:
/***/ ((module) => {

"use strict";
module.exports = require("node:process");

/***/ }),

/***/ 4492:
/***/ ((module) => {

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as cljstyle from './cljstyle'
import * as zprint from './zprint'
import * as utils from './utils'
import * as cache from './cache'
import process from 'node:process'

export async function main(): Promise<void> {
try {
Expand Down Expand Up @@ -200,9 +201,11 @@ export async function post(): Promise<void> {
}

await Promise.all(tools)
process.exit(0)
} catch (err) {
const error = err instanceof Error ? err.message : String(err)
core.debug(error)
process.exit(1)
}
}

Expand Down

0 comments on commit b7a20d4

Please sign in to comment.