fix: fail fast when connector override generation fails
This commit is contained in:
@@ -789,7 +789,7 @@ async function writeInstallationFiles(ctx) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
await atomicWrite(fixtureOverridePath, yamlStringify(override, { lineWidth: 0, sortMapEntries: false }));
|
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"),
|
executable: join(ctx.repositoryRoot, "scripts", "generate-connector-secrets-override.sh"),
|
||||||
argv: [
|
argv: [
|
||||||
"--bindings-env", bindingsEnvPath,
|
"--bindings-env", bindingsEnvPath,
|
||||||
@@ -800,6 +800,7 @@ async function writeInstallationFiles(ctx) {
|
|||||||
],
|
],
|
||||||
env: ctx.execEnv,
|
env: ctx.execEnv,
|
||||||
});
|
});
|
||||||
|
if (generated.exitCode !== 0) throw new Error(`connector override generation failed: ${generated.stderr || generated.stdout}`);
|
||||||
const installation = {
|
const installation = {
|
||||||
profile: "server",
|
profile: "server",
|
||||||
projectDirectory: ctx.repositoryRoot,
|
projectDirectory: ctx.repositoryRoot,
|
||||||
|
|||||||
Reference in New Issue
Block a user