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 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,
|
||||
|
||||
Reference in New Issue
Block a user