fix: build with zola 0.23 via anemone's tera-v2 migration - #3
Merged
Merged
Conversation
stackptr
force-pushed
the
fix-zola-ca-certs
branch
from
September 10, 2026 19:59
b9160f8 to
e7947f5
Compare
nixpkgs bumped zola from 0.22.1 to 0.23.4, described upstream as
"probably the most breaking version of Zola that will happen" --
it removed shortcodes and migrated Tera to v2. The `anemone` theme
hadn't been updated for it, so builds failed with `Unknown filter
'escape'` and `Block 'head' is not defined in any parent template`.
zola 0.23 also dropped its native-tls fallback, so its now-mandatory
rustls client panics building a client without a CA bundle ("No CA
certificates were loaded from the system") on Linux, since the Nix
sandbox has no /etc/ssl/certs and nothing previously set
SSL_CERT_FILE. Point it at nixpkgs' cacert bundle.
Speyll/anemone#41 migrates the theme for zola 0.23/Tera v2 but isn't
merged yet, so pin to that branch directly. It adds a `head` block to
the theme's own base.html for per-page SEO tags, but this site
overrides base.html with its own, so add the same block there.
Also drop x86_64-darwin from `systems`: nixpkgs 26.11 (needed for
zola 0.23) dropped support for it, which broke `nix build`/`nix flake
check` entirely once nixpkgs was bumped, since flake-parts evaluates
`formatter` for every declared system regardless of which one is
requested.
stackptr
force-pushed
the
fix-zola-ca-certs
branch
from
September 10, 2026 20:04
e7947f5 to
f93ee7f
Compare
3 tasks
3 tasks
stackptr
added a commit
to stackptr/rc
that referenced
this pull request
Sep 10, 2026
zx-dev's build was broken on the last several nixpkgs bumps: zola 0.23 removed shortcodes and migrated Tera to v2, which the anemone theme wasn't compatible with, and dropped zola's native-tls fallback, causing its rustls client to panic in the Nix sandbox without a CA bundle. Fixed upstream in stackptr/zx.dev#3 (tracked for the anemone fork pin removal in stackptr/zx.dev#4). Bump picks up the fix so spore's build job passes again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
anemonetheme wasn't updated for it: building failed withUnknown filter 'escape'andBlock 'head' is not defined in any parent template.native-tlsfallback, so its now-mandatory rustls client panics building a client without a CA bundle (No CA certificates were loaded from the system), since the sandbox has no/etc/ssl/certsand nothing setsSSL_CERT_FILE. That's the error that surfaced instackptr/rc's CI (PR #553).anemonedirectly to that branch. It adds aheadblock to the theme's ownbase.htmlfor per-page SEO tags — but this site overridesbase.htmlwith its own, so the same block was added here too.x86_64-darwinfromsystems: nixpkgs 26.11 (needed for zola 0.23) dropped support for it entirely, which brokenix build/nix flake checkoutright once nixpkgs was bumped (flake-parts evaluatesformatterfor every declared system regardless of which one is requested).anemoneinput back toSpeyll/anemone.Test plan
nix flake checkpassesnix buildsucceeds/vs/escaping from Tera v2's new autoescape rules); the per-page SEO JSON-LD schema (previously silently broken since the site'sbase.htmlnever defined aheadblock) now renders correctlynix fmt .— no changes needed