From e5b417b85fa54c92925241c5914a88a119c9d2a9 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Wed, 29 May 2024 16:26:46 -0300 Subject: [PATCH] Move comment to better location --- dist/index.js | 3 +++ src/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 11d49c8..c0ecb8d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -97870,6 +97870,9 @@ var NixInstallerAction = class extends DetSysAction { get isRunningInNamespaceRunner() { return process.env["NSC_VM_ID"] !== void 0 && !(process.env["NOT_NAMESPACE"] === "true"); } + // Detect if we're in a GHA runner which is Linux, doesn't have Systemd, and does have Docker. + // This is a common case in self-hosted runners, providers like [Namespace](https://namespace.so/), + // and especially GitHub Enterprise Server. async detectAndForceDockerShim() { if (!this.isLinux) { if (this.forceDockerShim) { diff --git a/src/index.ts b/src/index.ts index 8bce7f5..66854e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -144,10 +144,10 @@ class NixInstallerAction extends DetSysAction { ); } + // Detect if we're in a GHA runner which is Linux, doesn't have Systemd, and does have Docker. + // This is a common case in self-hosted runners, providers like [Namespace](https://namespace.so/), + // and especially GitHub Enterprise Server. async detectAndForceDockerShim(): Promise { - // Detect if we're in a GHA runner which is Linux, doesn't have Systemd, and does have Docker. - // This is a common case in self-hosted runners, providers like [Namespace](https://namespace.so/), - // and especially GitHub Enterprise Server. if (!this.isLinux) { if (this.forceDockerShim) { actionsCore.warning(