mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
Move comment to better location
This commit is contained in:
parent
8ef3f8c93e
commit
e5b417b85f
2 changed files with 6 additions and 3 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -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) {
|
||||
|
|
|
@ -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<void> {
|
||||
// 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(
|
||||
|
|
Loading…
Reference in a new issue