Explications › Décisions › 003. Release and deploy by version, with a manifest

Explications › Décisions

Cette page n’est pas encore traduite : voici la version anglaise.

003. Release and deploy by version, with a manifest

What is live on arche-lang.xyz is a version, built from a tag and checked by its hashes. One manifest on the server says what is live.

  • Status: Accepted, implemented on 2026-11-23.
  • Date: 2026-11-23.
  • Supersedes: none.
  • Superseded by: none.

Context#

The server repository builds the site and the release, and deploy.sh puts them on the server. It publishes whatever is in the local release/out, a folder git does not track. On 2026-11-22 a deploy of the site alone, from a checkout whose release/out held 0.16.3, rolled the live downloads and the store back from 0.18.0.

The site build also took whatever arche-lang tree sat next to it, by default a checkout with other sessions' edits. So the playground ran main's compiler while the downloads were 0.18.0. What was live could not be rebuilt or explained, and a deploy could undo a release without anyone noticing.

Decision#

  • A release is built from a tag of arche-lang.
  • A deploy takes a version number. It fetches that version's files and checks their hashes before anything goes live.
  • One manifest on the server says what is live: the site, the compiler, the extension and the store's runtime, each with its version. downloads/latest.json already does this for the downloads.
  • Every deploy starts with a dry run that shows what would change against what is live.
  • First steps: deploy.sh refuses to run when the version in release/out is not the live one, and the site build needs an explicit --arche-lang tree.

Consequences#

  • What is live can be rebuilt from its tag and explained from the manifest.
  • A deploy can no longer undo a release by accident.
  • A change to the site that needs a new compiler needs a new version first.
  • Releasing takes a tag and a build, even for a small fix.