Skip to content

Commit c8bf775

Browse files
committed
Force back to v3.12.2 for users who don't otherwise specify a tag
1 parent 9fc343c commit c8bf775

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

dist/index.js

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ class NixInstallerAction extends DetSysAction {
9090
runnerOs: string | undefined;
9191

9292
constructor() {
93+
if (platform.getArchOs() === "X64-macOS") {
94+
// Holy guacamole this is ugly
95+
actionsCore.warning(
96+
"Determinate Nix Installer no longer supports macOS on Intel. See: https://github.com/DeterminateSystems/nix-src/issues/224",
97+
);
98+
const sourceTag = inputs.getStringOrUndefined("source-tag");
99+
if (sourceTag === undefined) {
100+
actionsCore.notice(
101+
"Pinning the installer tag to v3.12.2, the last version to support Intel Macs.",
102+
);
103+
process.env["INPUT_source-tag"] = "v3.12.2";
104+
}
105+
}
106+
93107
super({
94108
name: "nix-installer",
95109
fetchStyle: "nix-style",

0 commit comments

Comments
 (0)