Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5d54133
chore(deps): bump moby to v29.5.1 to fix 3 docker cp CVEs in seed con…
davidkonigsberg May 19, 2026
caa6540
chore(deps): bump brace-expansion to 5.0.6 in Docker images (GHSA-jxx…
davidkonigsberg May 19, 2026
703e2df
chore(seed): update all seed snapshots (#15979)
fern-support May 19, 2026
c0facdf
chore(cli-v2): add bin/ property for shared tool binaries (#15915)
iamnamananand996 May 19, 2026
7ffb7f0
chore(cli): release 5.28.3
github-actions[bot] May 19, 2026
f5c0db9
feat(cli-v2): port over the `fern docs md` commands (#15833)
iamnamananand996 May 19, 2026
c55c4c8
chore(cli): release 5.29.0
github-actions[bot] May 19, 2026
1ff699a
fix(generator-cli): restore web-flow signing on cloud-generated commi…
tstanmay13 May 19, 2026
66b6d86
chore(deps): bump @fern-api/generator-cli catalog pin to 0.9.32 (#15985)
tstanmay13 May 19, 2026
81022d2
feat(cli): add commit-and-release mode to GithubSelfhostedMode (#15926)
jsklan May 19, 2026
570c9a1
chore(cli): release 5.30.0
github-actions[bot] May 19, 2026
1ead985
fix(cli): check broken links in folder-referenced pages (#15982)
Ryan-Amirthan May 19, 2026
89ff30e
chore(cli): release 5.30.1
github-actions[bot] May 19, 2026
3c2e819
fix(cli): use batched requests for `fern docs link check` to prevent …
devin-ai-integration[bot] May 19, 2026
978c554
chore(cli): release 5.30.2
github-actions[bot] May 19, 2026
0bee925
fix(cli): guard streaming-extension parse when only resumable is set …
patrickthornton May 19, 2026
4bf3afc
chore(cli): release 5.30.3
github-actions[bot] May 19, 2026
d7f09ad
feat(python): `output_directory` toggles whether project is built und…
patrickthornton May 19, 2026
75b27b6
chore(python): release 5.13.0
github-actions[bot] May 19, 2026
80eb756
fix(openapi): Add support for oneOf in x-fern-streaming (#15991)
amckinney May 19, 2026
cec620b
chore(cli): release 5.30.4
github-actions[bot] May 19, 2026
f697af4
chore(seed): update all seed snapshots (#15993)
fern-support May 19, 2026
91981ae
chore(seed): update all seed snapshots (#15995)
fern-support May 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions docker/seed/Dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apk add --no-cache curl && \
FROM golang:1.26.3-alpine3.23 AS overlay-binaries
ARG CONTAINERD_VERSION=2.3.0
ARG RUNC_VERSION=1.3.5
# moby v2.0.0-beta.12 (docker v29.5.0-rc.1) is past the v2.0.0-beta.8
# upstream fix for CVE-2026-33997 / CVE-2026-34040.
ARG MOBY_VERSION=29.5.0-rc.1
ARG DOCKER_CLI_VERSION=29.5.0-rc.1
# moby v29.5.1 fixes CVE-2026-41567, CVE-2026-41568, CVE-2026-42306
# (GHSA-x86f-5xw2-fm2r, GHSA-vp62-88p7-qqf5, GHSA-rg2x-37c3-w2rh)
# and includes the earlier CVE-2026-33997 / CVE-2026-34040 fixes.
ARG MOBY_VERSION=29.5.1
ARG DOCKER_CLI_VERSION=29.5.1
ARG XNET_VERSION=0.53.0
ARG OTEL_SDK_VERSION=1.43.0
ARG IN_TOTO_VERSION=0.11.0
Expand Down
9 changes: 5 additions & 4 deletions docker/seed/Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
FROM golang:1.26.3-alpine3.23 AS overlay-binaries
ARG CONTAINERD_VERSION=2.3.0
ARG RUNC_VERSION=1.3.5
# moby v2.0.0-beta.12 (docker v29.5.0-rc.1) is past the v2.0.0-beta.8
# upstream fix for CVE-2026-33997 / CVE-2026-34040.
ARG MOBY_VERSION=29.5.0-rc.1
ARG DOCKER_CLI_VERSION=29.5.0-rc.1
# moby v29.5.1 fixes CVE-2026-41567, CVE-2026-41568, CVE-2026-42306
# (GHSA-x86f-5xw2-fm2r, GHSA-vp62-88p7-qqf5, GHSA-rg2x-37c3-w2rh)
# and includes the earlier CVE-2026-33997 / CVE-2026-34040 fixes.
ARG MOBY_VERSION=29.5.1
ARG DOCKER_CLI_VERSION=29.5.1
ARG COMPOSE_VERSION=5.1.3
ARG XNET_VERSION=0.53.0
ARG OTEL_SDK_VERSION=1.43.0
Expand Down
9 changes: 5 additions & 4 deletions docker/seed/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apk add --no-cache curl && \
FROM golang:1.26.3-alpine3.23 AS overlay-binaries
ARG CONTAINERD_VERSION=2.3.0
ARG RUNC_VERSION=1.3.5
# moby v2.0.0-beta.12 (docker v29.5.0-rc.1) is past the v2.0.0-beta.8
# upstream fix for CVE-2026-33997 / CVE-2026-34040.
ARG MOBY_VERSION=29.5.0-rc.1
ARG DOCKER_CLI_VERSION=29.5.0-rc.1
# moby v29.5.1 fixes CVE-2026-41567, CVE-2026-41568, CVE-2026-42306
# (GHSA-x86f-5xw2-fm2r, GHSA-vp62-88p7-qqf5, GHSA-rg2x-37c3-w2rh)
# and includes the earlier CVE-2026-33997 / CVE-2026-34040 fixes.
ARG MOBY_VERSION=29.5.1
ARG DOCKER_CLI_VERSION=29.5.1
ARG COMPOSE_VERSION=5.1.3
ARG XNET_VERSION=0.53.0
ARG OTEL_SDK_VERSION=1.43.0
Expand Down
10 changes: 8 additions & 2 deletions docker/seed/Dockerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,23 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# Upgrade bundled npm to 11.14.1 to pick up patched transitive dependencies
# (picomatch 4.0.4, brace-expansion 5.0.5, minimatch 10.2.5, tar 7.5.13).
# (picomatch 4.0.4, minimatch 10.2.5, tar 7.5.13).
# node:24.15.0 ships npm 11.12.1 which still vendors picomatch 4.0.3 and
# brace-expansion 5.0.4. Replace ip-address with 10.1.1 to fix
# GHSA-v2v4-37r5-5v8g (still bundled at 10.1.0 even in npm 11.14.1).
# Patch brace-expansion to 5.0.6 (GHSA-jxxr-4gwj-5jf2; npm 11.14.1 vendors 5.0.5).
RUN npm install -g npm@11.14.1 --force && \
cd /usr/local/lib/node_modules/npm/node_modules && \
npm pack ip-address@10.1.1 && \
rm -rf ip-address && \
mkdir ip-address && \
tar -xzf ip-address-10.1.1.tgz --strip-components=1 -C ip-address/ && \
rm ip-address-10.1.1.tgz
rm ip-address-10.1.1.tgz && \
npm pack brace-expansion@5.0.6 && \
rm -rf brace-expansion && \
mkdir brace-expansion && \
tar -xzf brace-expansion-5.0.6.tgz --strip-components=1 -C brace-expansion/ && \
rm brace-expansion-5.0.6.tgz

RUN npm install -g pnpm@10.33.3 --force
RUN corepack prepare pnpm@10.33.3
Expand Down
2 changes: 2 additions & 0 deletions fern/apis/generators-yml/definition/group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ types:
- name: pullRequest
value: pull-request
- push
- name: commitAndRelease
value: commit-and-release

GeneratorSnippetsSchema:
properties:
Expand Down
3 changes: 2 additions & 1 deletion generators-yml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3968,7 +3968,8 @@
"type": "string",
"enum": [
"pull-request",
"push"
"push",
"commit-and-release"
]
},
"license.GithubLicenseType": {
Expand Down
8 changes: 8 additions & 0 deletions generators/csharp/model/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx

# Patch brace-expansion to 5.0.6 (GHSA-jxxr-4gwj-5jf2; node:24.15 vendors 5.0.5).
RUN cd /usr/local/lib/node_modules/npm/node_modules && \
npm pack brace-expansion@5.0.6 && \
rm -rf brace-expansion && \
mkdir brace-expansion && \
tar -xzf brace-expansion-5.0.6.tgz --strip-components=1 -C brace-expansion/ && \
rm brace-expansion-5.0.6.tgz

RUN dotnet tool install -g csharpier --version "1.2.6"

COPY generators/csharp/model/dist /dist
Expand Down
8 changes: 4 additions & 4 deletions generators/csharp/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ RUN for dir in \
fi; \
done

# Patch brace-expansion to 5.0.5 to fix GHSA-f886-m6hf-6m8v
# Patch brace-expansion to 5.0.6 to fix GHSA-jxxr-4gwj-5jf2
# (zero-step sequence hangs).
RUN for dir in \
/usr/local/lib/node_modules/npm/node_modules/brace-expansion; do \
if [ -d "$dir" ]; then \
rm -rf "$dir" && \
cd "$(dirname "$dir")" && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz -o brace-expansion-5.0.5.tgz && \
tar -xzf brace-expansion-5.0.5.tgz && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz -o brace-expansion-5.0.6.tgz && \
tar -xzf brace-expansion-5.0.6.tgz && \
mv package brace-expansion && \
rm brace-expansion-5.0.5.tgz; \
rm brace-expansion-5.0.6.tgz; \
fi; \
done

Expand Down
10 changes: 5 additions & 5 deletions generators/go/model/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx

# Patch npm's bundled picomatch@4.0.3 -> 4.0.4 (GHSA-c2c7-rcm5-vvqj,
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.5
# (GHSA-f886-m6hf-6m8v) copied from the node stage.
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.6
# (GHSA-jxxr-4gwj-5jf2) copied from the node stage.
RUN for dir in \
/usr/local/lib/node_modules/npm/node_modules/picomatch \
/usr/local/lib/node_modules/npm/node_modules/tinyglobby/node_modules/picomatch; do \
Expand All @@ -47,10 +47,10 @@ RUN for dir in \
if [ -d "$dir" ]; then \
rm -rf "$dir" && \
cd "$(dirname "$dir")" && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz -o brace-expansion-5.0.5.tgz && \
tar -xzf brace-expansion-5.0.5.tgz && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz -o brace-expansion-5.0.6.tgz && \
tar -xzf brace-expansion-5.0.6.tgz && \
mv package brace-expansion && \
rm brace-expansion-5.0.5.tgz; \
rm brace-expansion-5.0.6.tgz; \
fi; \
done

Expand Down
2 changes: 1 addition & 1 deletion generators/go/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN git config --global user.email "115122769+fern-api[bot]@users.noreply.github

# Patch vulnerable packages bundled inside npm's node_modules that lag behind
# upstream advisories (ip-address GHSA-v2v4-37r5-5v8g, brace-expansion
# GHSA-f886-m6hf-6m8v, picomatch GHSA-3v7f-55p6-f55p / GHSA-c2c7-rcm5-vvqj).
# GHSA-jxxr-4gwj-5jf2, picomatch GHSA-3v7f-55p6-f55p / GHSA-c2c7-rcm5-vvqj).
# We replace them with the latest patched releases via `npm pack` so the
# resulting layer does not ship known-vulnerable copies.
RUN set -eux; \
Expand Down
8 changes: 4 additions & 4 deletions generators/java/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ RUN for dir in \
fi; \
done

# Patch brace-expansion to 5.0.5 to fix GHSA-f886-m6hf-6m8v
# Patch brace-expansion to 5.0.6 to fix GHSA-jxxr-4gwj-5jf2
# (zero-step sequence DoS; bundled by npm 11.12.1 at 5.0.4).
RUN for dir in \
/usr/local/lib/node_modules/npm/node_modules/brace-expansion; do \
if [ -d "$dir" ]; then \
rm -rf "$dir" && \
cd "$(dirname "$dir")" && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz -o brace-expansion-5.0.5.tgz && \
tar -xzf brace-expansion-5.0.5.tgz && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz -o brace-expansion-5.0.6.tgz && \
tar -xzf brace-expansion-5.0.6.tgz && \
mv package brace-expansion && \
rm brace-expansion-5.0.5.tgz; \
rm brace-expansion-5.0.6.tgz; \
fi; \
done

Expand Down
10 changes: 5 additions & 5 deletions generators/php/model/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx

# Patch npm's bundled picomatch@4.0.3 -> 4.0.4 (GHSA-c2c7-rcm5-vvqj,
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.5
# (GHSA-f886-m6hf-6m8v) in the node_modules copied from the node stage.
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.6
# (GHSA-jxxr-4gwj-5jf2) in the node_modules copied from the node stage.
RUN for dir in \
/usr/local/lib/node_modules/npm/node_modules/picomatch \
/usr/local/lib/node_modules/npm/node_modules/tinyglobby/node_modules/picomatch; do \
Expand All @@ -40,10 +40,10 @@ RUN for dir in \
if [ -d "$dir" ]; then \
rm -rf "$dir" && \
cd "$(dirname "$dir")" && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz -o brace-expansion-5.0.5.tgz && \
tar -xzf brace-expansion-5.0.5.tgz && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz -o brace-expansion-5.0.6.tgz && \
tar -xzf brace-expansion-5.0.6.tgz && \
mv package brace-expansion && \
rm brace-expansion-5.0.5.tgz; \
rm brace-expansion-5.0.6.tgz; \
fi; \
done

Expand Down
10 changes: 5 additions & 5 deletions generators/php/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx

# Patch npm's bundled picomatch@4.0.3 -> 4.0.4 (GHSA-c2c7-rcm5-vvqj,
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.5
# (GHSA-f886-m6hf-6m8v) in the node_modules copied from the node stage.
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.6
# (GHSA-jxxr-4gwj-5jf2) in the node_modules copied from the node stage.
RUN for dir in \
/usr/local/lib/node_modules/npm/node_modules/picomatch \
/usr/local/lib/node_modules/npm/node_modules/tinyglobby/node_modules/picomatch; do \
Expand All @@ -40,10 +40,10 @@ RUN for dir in \
if [ -d "$dir" ]; then \
rm -rf "$dir" && \
cd "$(dirname "$dir")" && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz -o brace-expansion-5.0.5.tgz && \
tar -xzf brace-expansion-5.0.5.tgz && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz -o brace-expansion-5.0.6.tgz && \
tar -xzf brace-expansion-5.0.6.tgz && \
mv package brace-expansion && \
rm brace-expansion-5.0.5.tgz; \
rm brace-expansion-5.0.6.tgz; \
fi; \
done

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const BasePythonCustomConfigSchema = z.object({
extra_dev_dependencies: z.record(z.string(), z.union([z.string(), BaseDependencyConfig])).optional(),
extras: z.record(z.string(), z.array(z.string())).optional(),
follow_redirects_by_default: z.boolean().optional(),
output_directory: z.enum(["project-root", "source-root"]).optional(),
pyproject_python_version: z.string().optional(),
pyproject_toml: z.string().optional(),
should_generate_websocket_clients: z.boolean().optional(),
Expand All @@ -32,6 +33,7 @@ export const BasePythonCustomConfigSchema = z.object({
// Deprecated.
client_class_name: z.string().optional(),
client_filename: z.string().optional(),
/** @deprecated Prefer `output_directory`. `flat_layout` only toggles the `src/` prefix and never skips project scaffolding. */
flat_layout: z.boolean().optional(),
include_legacy_wire_tests: z.boolean().optional(),
inline_request_params: z.boolean().optional(),
Expand Down
8 changes: 8 additions & 0 deletions generators/python-v2/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ RUN echo "Types: deb" > /etc/apt/sources.list.d/sid.sources \
curl libcurl4t64 libgnutls30t64 \
&& rm -f /etc/apt/sources.list.d/sid.sources /etc/apt/preferences.d/sid-low \
&& rm -rf /var/lib/apt/lists/*
# Patch brace-expansion to 5.0.6 (GHSA-jxxr-4gwj-5jf2; node:24.15 vendors 5.0.5).
RUN cd /usr/local/lib/node_modules/npm/node_modules && \
npm pack brace-expansion@5.0.6 && \
rm -rf brace-expansion && \
mkdir brace-expansion && \
tar -xzf brace-expansion-5.0.6.tgz --strip-components=1 -C brace-expansion/ && \
rm brace-expansion-5.0.6.tgz

RUN curl -LsSf https://astral.sh/ruff/0.15.7/install.sh | sh
ENV PATH="/root/.local/bin:${PATH}"
RUN ruff --version
Expand Down
10 changes: 10 additions & 0 deletions generators/python-v2/sdk/src/SdkCustomConfig.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import path from "path";
import { z } from "zod";

export const OUTPUT_DIRECTORY_OPTIONS = ["project-root", "source-root"] as const;
export type OutputDirectory = (typeof OUTPUT_DIRECTORY_OPTIONS)[number];

/**
* Schema for validating and normalizing relative paths.
* Rejects absolute paths, parent traversal, and invalid characters.
Expand Down Expand Up @@ -59,6 +62,13 @@ export const SdkCustomConfigSchema = z.object({
enable_wire_tests: z.boolean().optional(),
package_path: relativePathSchema.optional(),
package_name: z.string().optional(),
/**
* Controls project layout. `project-root` (default when unset) emits the
* standard `src/<package>/...` tree with a pyproject.toml at root.
* `source-root` writes source files directly without the `src/` prefix and
* skips project scaffolding — useful when embedding into an existing project.
*/
output_directory: z.enum(OUTPUT_DIRECTORY_OPTIONS).optional(),
client: ClientConfigSchema.optional(),
client_class_name: z.string().optional(),
inline_request_params: z.boolean().optional(),
Expand Down
52 changes: 28 additions & 24 deletions generators/python-v2/sdk/src/SdkGeneratorCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Endpoint } from "@fern-fern/generator-exec-sdk/api";
import { FernIr } from "@fern-fern/ir-sdk";
import { ContributingGenerator } from "./contributing/ContributingGenerator.js";
import { buildReference } from "./reference/buildReference.js";
import { SdkCustomConfigSchema } from "./SdkCustomConfig.js";
import { type OutputDirectory, SdkCustomConfigSchema } from "./SdkCustomConfig.js";
import { SdkGeneratorContext } from "./SdkGeneratorContext.js";
import { selectExamplesForSnippets } from "./utils/selectExamplesForSnippets.js";
import { WireTestGenerator } from "./wire-tests/WireTestGenerator.js";
Expand Down Expand Up @@ -50,37 +50,41 @@ export class SdkGeneratorCli extends AbstractPythonGeneratorCli<SdkCustomConfigS
}

protected async generate(context: SdkGeneratorContext): Promise<void> {
await this.generateWireTestFiles(context);
// In source-root mode the user is embedding the source tree into an existing
// project, so README/reference/CONTRIBUTING/wire-test scaffolding doesn't apply.
const sourceRoot: OutputDirectory = "source-root";
if (context.customConfig.output_directory !== sourceRoot) {
await this.generateWireTestFiles(context);

// Generate snippets once, used by both README and reference
let endpointSnippets: Endpoint[] = [];
try {
endpointSnippets = this.generateSnippets({ context });
} catch (error) {
context.logger.debug(`Failed to generate snippets: ${extractErrorMessage(error)}`);
}

// Generate README.md
if (this.shouldGenerateReadme(context) && endpointSnippets.length > 0) {
let endpointSnippets: Endpoint[] = [];
try {
await this.generateReadme({ context, endpointSnippets });
endpointSnippets = this.generateSnippets({ context });
} catch (error) {
throw GeneratorError.internalError(`Failed to generate README.md: ${extractErrorMessage(error)}`);
context.logger.debug(`Failed to generate snippets: ${extractErrorMessage(error)}`);
}
}

// Generate reference.md
try {
await this.generateReference({ context, endpointSnippets });
} catch (error) {
throw GeneratorError.internalError(`Failed to generate reference.md: ${extractErrorMessage(error)}`);
}
if (this.shouldGenerateReadme(context) && endpointSnippets.length > 0) {
try {
await this.generateReadme({ context, endpointSnippets });
} catch (error) {
throw GeneratorError.internalError(`Failed to generate README.md: ${extractErrorMessage(error)}`);
}
}

if (!context.config.whitelabel) {
try {
this.generateContributing({ context });
await this.generateReference({ context, endpointSnippets });
} catch (error) {
throw GeneratorError.internalError(`Failed to generate CONTRIBUTING.md: ${extractErrorMessage(error)}`);
throw GeneratorError.internalError(`Failed to generate reference.md: ${extractErrorMessage(error)}`);
}

if (!context.config.whitelabel) {
try {
this.generateContributing({ context });
} catch (error) {
throw GeneratorError.internalError(
`Failed to generate CONTRIBUTING.md: ${extractErrorMessage(error)}`
);
}
}
}

Expand Down
10 changes: 5 additions & 5 deletions generators/python/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ RUN node --version
RUN npm --version

# Patch npm's bundled picomatch@4.0.3 -> 4.0.4 (GHSA-c2c7-rcm5-vvqj,
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.5
# (GHSA-f886-m6hf-6m8v) copied from the node stage.
# GHSA-3v7f-55p6-f55p) and brace-expansion@5.0.4 -> 5.0.6
# (GHSA-jxxr-4gwj-5jf2) copied from the node stage.
RUN for dir in \
/usr/local/lib/node_modules/npm/node_modules/picomatch \
/usr/local/lib/node_modules/npm/node_modules/tinyglobby/node_modules/picomatch; do \
Expand All @@ -56,10 +56,10 @@ RUN for dir in \
if [ -d "$dir" ]; then \
rm -rf "$dir" && \
cd "$(dirname "$dir")" && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz -o brace-expansion-5.0.5.tgz && \
tar -xzf brace-expansion-5.0.5.tgz && \
curl -sL https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz -o brace-expansion-5.0.6.tgz && \
tar -xzf brace-expansion-5.0.6.tgz && \
mv package brace-expansion && \
rm brace-expansion-5.0.5.tgz; \
rm brace-expansion-5.0.6.tgz; \
fi; \
done

Expand Down
Loading
Loading