Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 44 additions & 9 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86339,15 +86339,20 @@ var __webpack_exports__ = {};
var core = __nccwpck_require__(16966);
// EXTERNAL MODULE: ./node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js
var exec = __nccwpck_require__(92851);
;// CONCATENATED MODULE: ./node_modules/.pnpm/detsys-ts@https+++codeload.github.com+DeterminateSystems+detsys-ts+tar.gz+0e3d1accf3c5d_aa38a39e788116141d1cc07d19597dcf/node_modules/detsys-ts/dist/chunk-Bp6m_JJh.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/detsys-ts@https+++codeload.github.com+DeterminateSystems+detsys-ts+tar.gz+437297ec87a5c_f77ae93d0b8e94959106721d1a5ddd76/node_modules/detsys-ts/dist/chunk-C6wwvPpM.mjs
//#region rolldown:runtime
var __defProp = Object.defineProperty;
var __export = (all) => {
var __export = (all, symbols) => {
let target = {};
for (var name in all) __defProp(target, name, {
get: all[name],
enumerable: true
});
for (var name in all) {
__defProp(target, name, {
get: all[name],
enumerable: true
});
}
if (symbols) {
__defProp(target, Symbol.toStringTag, { value: "Module" });
}
return target;
};

Expand Down Expand Up @@ -95467,7 +95472,7 @@ var cache = __nccwpck_require__(31866);
const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");
;// CONCATENATED MODULE: external "node:path"
const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path");
;// CONCATENATED MODULE: ./node_modules/.pnpm/detsys-ts@https+++codeload.github.com+DeterminateSystems+detsys-ts+tar.gz+0e3d1accf3c5d_aa38a39e788116141d1cc07d19597dcf/node_modules/detsys-ts/dist/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/detsys-ts@https+++codeload.github.com+DeterminateSystems+detsys-ts+tar.gz+437297ec87a5c_f77ae93d0b8e94959106721d1a5ddd76/node_modules/detsys-ts/dist/index.mjs



Expand All @@ -95487,6 +95492,16 @@ const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(impo


//#region src/linux-release-info.ts
/*!
* linux-release-info
* Get Linux release info (distribution name, version, arch, release, etc.)
* from '/etc/os-release' or '/usr/lib/os-release' files and from native os
* module. On Windows and Darwin platforms it only returns common node os module
* info (platform, hostname, release, and arch)
*
* Licensed under MIT
* Copyright (c) 2018-2020 [Samuel Carreira]
*/
const readFileAsync = (0,external_node_util_.promisify)(external_node_fs_.readFile);
const linuxReleaseInfoOptionsDefaults = {
mode: "async",
Expand Down Expand Up @@ -95695,6 +95710,10 @@ function stringifyError(e) {

//#endregion
//#region src/backtrace.ts
/**
* @packageDocumentation
* Collects backtraces for executables for diagnostics
*/
const START_SLOP_SECONDS = 5;
async function collectBacktraces(prefixes, programNameDenyList, startTimestampMs) {
if (isMacOS) return await collectBacktracesMacOS(prefixes, programNameDenyList, startTimestampMs);
Expand Down Expand Up @@ -95875,6 +95894,10 @@ function hashEnvironmentVariables(prefix, variables) {

//#endregion
//#region src/ids-host.ts
/**
* @packageDocumentation
* Identifies and discovers backend servers for install.determinate.systems
*/
const DEFAULT_LOOKUP = "_detsys_ids._tcp.install.determinate.systems.";
const ALLOWED_SUFFIXES = [".install.determinate.systems", ".install.detsys.dev"];
const DEFAULT_IDS_HOST = "https://install.determinate.systems";
Expand Down Expand Up @@ -96036,6 +96059,10 @@ function weightedRandom(records) {

//#endregion
//#region src/inputs.ts
/**
* @packageDocumentation
* Helpers for getting values from an Action's configuration.
*/
var inputs_exports = /* @__PURE__ */ __export({
getArrayOfStrings: () => getArrayOfStrings,
getArrayOfStringsOrNull: () => getArrayOfStringsOrNull,
Expand Down Expand Up @@ -96123,6 +96150,10 @@ const getStringOrUndefined = (name) => {

//#endregion
//#region src/platform.ts
/**
* @packageDocumentation
* Helpers for determining system attributes of the current runner.
*/
var platform_exports = /* @__PURE__ */ __export({
getArchOs: () => getArchOs,
getNixPlatform: () => getNixPlatform
Expand Down Expand Up @@ -96183,6 +96214,10 @@ function noisilyGetInput(suffix, legacyPrefix) {

//#endregion
//#region src/index.ts
/**
* @packageDocumentation
* Determinate Systems' TypeScript library for creating GitHub Actions logic.
*/
const pkgVersion = "1.0";
const EVENT_BACKTRACES = "backtrace";
const EVENT_EXCEPTION = "exception";
Expand Down Expand Up @@ -96218,7 +96253,7 @@ const PROGRAM_NAME_CRASH_DENY_LIST = [
];
const determinateStateDir = "/var/lib/determinate";
const determinateIdentityFile = external_node_path_namespaceObject.join(determinateStateDir, "identity.json");
const isRoot = external_node_os_.userInfo().uid === 0;
const isRoot = typeof process.geteuid === "function" && process.geteuid() === 0;
/** Create the Determinate state directory by escalating via sudo */
async function sudoEnsureDeterminateStateDir() {
const code = await exec.exec("sudo", [
Expand Down Expand Up @@ -96815,7 +96850,7 @@ function makeOptionsConfident(actionOptions) {

//#endregion

//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.mjs.map
;// CONCATENATED MODULE: ./dist/index.js
// src/nix.ts
function makeNixCommandArgs(nixOptions, flakeInputs, commitMessage) {
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading