Skip to content

ci: pin @antora/pdf-extension to 1.0.0-beta.20 (fix build FATAL) - #274

Closed
hs-liuxh wants to merge 1 commit into
IvorySQL:masterfrom
hs-liuxh:fix/pin-pdf-extension-master
Closed

ci: pin @antora/pdf-extension to 1.0.0-beta.20 (fix build FATAL)#274
hs-liuxh wants to merge 1 commit into
IvorySQL:masterfrom
hs-liuxh:fix/pin-pdf-extension-master

Conversation

@hs-liuxh

Copy link
Copy Markdown
Contributor

Problem

PR #271 and other doc builds fail with:

FATAL (antora): contentCatalog.createFile is not a function

Root cause

The CI installs Antora pinned ([email protected]) but @antora/pdf-extension unpinned. On 2026-06-29, @antora/[email protected] was published, which bundles @antora/[email protected]. That assembler calls contentCatalog.createFile() — a method that does not exist in @antora/[email protected] (the ContentCatalog used by [email protected]). The previous version 1.0.0-beta.20 did not use it, so builds passed until the new release.

Fix

Pin @antora/pdf-extension to the last-known-good 1.0.0-beta.20 in both workflow install steps (pr-preview.yml, merge-build-push.yml), restoring the working toolchain alongside [email protected].

Note: pr-preview.yml runs via pull_request_target, so this fix only takes effect for new PR previews once merged into the base branch.

🤖 Generated with Claude Code

@antora/[email protected] (published 2026-06-29) bundles
@antora/[email protected], which calls contentCatalog.createFile() — a
method absent from @antora/[email protected] used by the pinned
[email protected]. The unpinned install began resolving to rc.1, causing
'FATAL (antora): contentCatalog.createFile is not a function'.

Pin to the last-known-good 1.0.0-beta.20 to restore the working toolchain.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@hs-liuxh hs-liuxh closed this Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant