Move comment to better location

This commit is contained in:
Luc Perkins 2024-05-29 16:26:46 -03:00
parent 8ef3f8c93e
commit e5b417b85f
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
2 changed files with 6 additions and 3 deletions

3
dist/index.js generated vendored
View file

@ -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) {

View file

@ -144,10 +144,10 @@ class NixInstallerAction extends DetSysAction {
);
}
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.
async detectAndForceDockerShim(): Promise<void> {
if (!this.isLinux) {
if (this.forceDockerShim) {
actionsCore.warning(