Mark first-party generated files with .gen; preserve third-party conventions

This commit is contained in:
Timothy J. Aveni
2026-09-15 17:32:53 -07:00
parent 1afc9feb94
commit e557a057d8
8 changed files with 21 additions and 16 deletions
+3 -2
View File
@@ -437,6 +437,7 @@ const main = async () => {
for (const [executable, args] of [
["corepack", ["yarn", "plugin", "import", toolchain.nixifyPluginUrl]],
["corepack", ["yarn", "config", "set", "generateDefaultNix", "false"]],
["corepack", ["yarn", "config", "set", "nixExprPath", "yarn-project.gen.nix"]],
["corepack", ["yarn", "config", "set", "individualNixPackaging", "true"]],
["corepack", ["yarn", "install"]],
] as const) {
@@ -447,10 +448,10 @@ const main = async () => {
);
}
try {
await readFile(path.join(cwd, "yarn-project.nix"));
await readFile(path.join(cwd, "yarn-project.gen.nix"));
} catch {
throw new Error(
"Nixify did not generate yarn-project.nix. It skips repositories under the OS temporary directory; use an ordinary workspace checkout and retry installation.",
"Nixify did not generate yarn-project.gen.nix. It skips repositories under the OS temporary directory; use an ordinary workspace checkout and retry installation.",
);
}
await snapshotCommit(cwd);