releases and rebases¶
the editor is a fork of hedgedoc 1.x. two files in this repo are its whole source of truth:
editor/UPSTREAM: the upstream release tag the fork sits on.editor/critic.bundle: a git bundle of every fork commit on top of that tag.
an image build clones upstream at UPSTREAM, fetches the bundle, checks out
critic, and asserts the tag really is the bundle's base. those two files are
also what AGPL's corresponding-source obligation points at.
the rebase is a maintenance step; builds never run it.
bumping upstream¶
it keeps a checkout in editor/.work (gitignored, several hundred MB), rebases
critic onto the target, reconciles package.json, regenerates yarn.lock,
and commits the manifest and lock as a Specdoc-Lock: commit before refreshing
critic.bundle and UPSTREAM. Previous lock commits are excluded from replay.
The target release supplies package metadata, toolchain versions and unchanged
dependencies. Independent fork additions and scripts remain. A dependency patch
is retained only when its underlying version still matches upstream. Conflicting
changes require an explicit resolution rather than silently selecting a version.
Save a reviewed manifest outside the checkout and pass it with
--manifest /absolute/path/package.json when rerunning the update.
- The target must be a 1.x release containing the current base.
- A replay conflict stops the script without discarding local work. Resolve and
complete the Git rebase in
editor/.work, then rerun the update command. Each update saves a backup ref before replaying; a pending update retains that ref. - a fresh checkout is seeded from
critic.bundle, never from the upstream fork it started as.--bootstrap-from-forkseeds the original fork only in a fresh checkout and refuses to replace an existingcriticbranch.
then, in this repo:
git add editor/UPSTREAM editor/critic.bundle
hack/build-editor.sh # rebuild both images against the new base
commit the bundle in the same change as anything else that moved. the fork's
own patch ledger lives in FORK.md on the critic branch, not here: read it
with git -C editor/.work show critic:FORK.md.
shipping¶
Release the editor and board images together. Keep hostnames, storage, credentials and rollout commands in your deployment repository. See operations for the database migration and backup requirements.
cache the source snapshot separately whatever builds them
(local development explains why). an editor image built against
a stale one fails the check in editor/Containerfile rather than shipping the
wrong source.
See backup and restore before deployment.