Post

Adding a Checked Release Fallback for XERJ

Adding a Checked Release Fallback for XERJ

The latest main push adds a fallback path for fetching a checksum-verified XERJ release when the browser download endpoint fails. The change updates the development shell configuration and its release metadata so the same pinned artifact can be retrieved through the public GitHub release asset API.

Fallback Mechanism

The documentation now notes that XERJ can fetch the same pinned release archive through the public GitHub release asset API when the browser download endpoint fails. Inside the development shell the user can still run nix develop .#xerj to start an authenticated environment before fetching the archive. This keeps the manual setup path intact while removing a single point of failure in the release retrieval flow.

Configuration Impact

The flake update adjusts the release asset selection and adds a fetch configuration with an octet-stream content type and an accept header. These entries keep the fetch aligned with the binary release format rather than a browser-mediated response. The net effect is that CI and local builds can resolve the XERJ release from either the primary source or the fallback API without changing the pinned version.

Verification Next

The change has not yet been exercised against a real failed browser download, so the next check is to force the endpoint failure locally or in CI and confirm the fallback asset resolution succeeds. After that I would rerun the XERJ build once to confirm the fetched archive still produces the same checksum-verified result.

Team Reuse

Teams running similar checksum-pinned tools in Nix-based environments can copy this fallback pattern by pointing the release fetch at the public asset API with the appropriate accept headers, while keeping the checksum verification unchanged. The design should then be reviewed in the platform release automation before broader adoption.

This post is licensed under CC BY 4.0 by the author.