fix: fail fast when connector override generation fails

This commit is contained in:
2026-08-11 19:08:17 +02:00
parent 4d23ad4e85
commit 85aa6acdf3
+2 -1
View File
@@ -789,7 +789,7 @@ async function writeInstallationFiles(ctx) {
},
};
await atomicWrite(fixtureOverridePath, yamlStringify(override, { lineWidth: 0, sortMapEntries: false }));
await runCommand({
const generated = await runCommand({
executable: join(ctx.repositoryRoot, "scripts", "generate-connector-secrets-override.sh"),
argv: [
"--bindings-env", bindingsEnvPath,
@@ -800,6 +800,7 @@ async function writeInstallationFiles(ctx) {
],
env: ctx.execEnv,
});
if (generated.exitCode !== 0) throw new Error(`connector override generation failed: ${generated.stderr || generated.stdout}`);
const installation = {
profile: "server",
projectDirectory: ctx.repositoryRoot,