For contributors, see CONTRIBUTING.md. This document covers internal processes for those with merge access.
A gno.land release moves three independent version surfaces. Confusing them is the source of most release incidents, so they are named separately here.
| Surface | Where it lives | What it controls | When it moves |
|---|---|---|---|
| Release version | a git tag, compiled into tm2/pkg/version.Version via -ldflags |
what gnoland version reports, and what a governance halt_min_version is compared against |
every release |
| Protocol version | six constants under tm2/, see Protocol versions |
the versionset exchanged in the p2p handshake; peers whose MAJOR differs cannot connect | rarely, and never on its own |
| App version | baseApp.SetAppVersion in gno.land/pkg/gnoland/app.go |
the app entry of the versionset, persisted onto consensus state at the ABCI handshake |
rarely |
Only the first is what people usually mean by "the version". The tooling in
misc/release/ covers the first two: cut-release.sh for the
release version, bump-protocol-version.sh for the protocol constants. The app
version is the literal SetAppVersion("dev") in app.go and is edited by hand.
Releases are cut when they provide meaningful value for users to install/upgrade, or when the network needs to coordinate an upgrade — not on every commit.
Semver: vMAJOR.MINOR.PATCH
| Component | Meaning |
|---|---|
| MAJOR | A new network: a chain reset with an incompatible genesis, where state does not carry over. |
| MINOR | A coordinated upgrade of the current network — consensus change, state migration, new module, protocol change. Validators must halt together. |
| PATCH | A backward-compatible change that needs no coordination. Operators switch binaries whenever convenient. |
If a change alters the bytes nodes agree on, it is at least a MINOR, whatever
it looks like otherwise. A one-line fix to the signing payload is a coordinated
upgrade; a thousand-line refactor of gnoweb is a patch. cut-release.sh warns
when a range tagged as a patch contains commits marked feat!:/BREAKING, but
the judgement is yours.
v1.0.0 and v1.1.0 are betanet's — the same two commits as
chain/gnoland1.0 and chain/gnoland1.1. They were deleted upstream for a
while and have been restored at their original commits.
The line continues rather than restarting: mainnet's launch is v1.2.0. A tag
name is never reused for different content, which is also why restoring a
deleted tag is only safe at the commit it originally pointed to — anyone still
holding the old ref then has an identical one.
| Branch | Tags | Purpose |
|---|---|---|
master |
none | Continuous integration; the development tree |
chain/mainnet |
v1.x.x, plus the chain/mainnet launch tag |
Mainnet (gnoland-1) — coordinated upgrades only, never rebased |
chain/gnoland1 |
chain/gnoland1.0, chain/gnoland1.1 |
Retired. Frozen at what betanet ran; the tags keep their original names because they are compiled into those binaries. The branch is to be renamed chain/betanet — until it is, --chain betanet has no branch to resolve |
| (none) | chain/<name> |
A testnet on the mainnet line, onyx first: it runs mainnet's vX.Y.Z binaries, so it has no branch. Its launch tag sits on the commit of the version it launched on (its folder misc/deployments/<name>.gno.land/ lands on chain/mainnet before that version is cut), and the tag's release carries its genesis.json |
chain/pearl, chain/test13, … |
chain/<name> |
Earlier testnets, each on its own code line. Frozen |
Two tag shapes exist, and the node parses both
(gno.land/pkg/gnoland.meetsMinVersion):
vMAJOR.MINOR.PATCH— the release shape. Ordered, so it can gate an upgrade. This is what new releases use.chain/gnolandMAJOR.MINOR— betanet's retired shape. Still parsed, because those two tags are the version strings inside binaries that once ran a chain.
A bare chain/<name> tag — chain/mainnet, chain/pearl — marks where a chain
launched and carries its genesis.json as a release asset. It is not a
version: it does not order, so it cannot be used as a halt_min_version. Name
a vX.Y.Z tag there instead.
Tagging rules. Tags are immutable: never move one, and never reuse a name.
New tags are annotated (git tag -a), so plain git describe finds them;
v1.0.0 predates the rule and is lightweight, which is one reason every
describe in the tree passes --tags --match 'v*' — the other being that a
release commit also carries the chain's launch tag, which is not a version.
Pre-release tags (v1.3.0-rc.1) are allowed; they sort below the release they
lead to, and are published as GitHub pre-releases so they do not become the
"Latest" release operators and misc/install.sh land on.
master is the development tree. A chain/* branch is what a network actually
runs, and the two are not the same thing:
- Everything on a chain branch must also be on
master. The chain must not run code the development tree has never seen.cut-release.shchecks this. mastermay be ahead, and usually is. That is fine and expected.- A chain branch moves only when a release is cut, and every move is
tagged. Whether a release merges
masteror cherry-picks a set of PRs is decided per release and written in the tag message. A merge that touches consensus code is refused bycut-release.shunless--allow-mergesays the operator knows it ships everythingmasterhad. Between releases the branch tip is the latest tag, plus at most documentation or release-tooling commits that change no node code (the ledger,VALIDATOR.md, the release workflows,cut-release.sh). Operators still run the tag, never the tip: a build of anything but the tag reports a version nohalt_min_versionaccepts. - Where this ends up. Merging
masteris the natural default while mainnet tracks it closely. The daymastercarries work mainnet must not ship yet, the default flips to cherry-picking and the branch becomes a maintained release line in the Cosmos SDK / CometBFT sense:release/vX.Y.x, never merged frommaster, every change a labelled backport. Set that up the first time a hotfix must ship whilemasteris mid-refactor — before, not during.
# dry run: every check, no push. Once the ledger entry is pushed on top of the
# code, the branch tip is the ledger commit, so every cut names the code commit
misc/release/cut-release.sh v1.3.0 --commit <code-commit>
# a coordinated upgrade: also prints the GovDAO halt proposal to go with it.
# --commit names the code commit, the one the ledger entry names (item 6)
misc/release/cut-release.sh v1.3.0 --commit <code-commit> \
--halt-height 120000 --pushThe script checks that a tag would work as a release, and each check corresponds to something that has gone wrong before. All but one are refusals:
- The version shape parses. A tag the node cannot parse degrades
halt_min_versionto byte equality, which refuses the very binary the upgrade was cut for — and the chain cannot restart at all. - The tag is free, locally and on origin.
- The commit is on
master, or differs only undermisc/deployments/. A warning, not a refusal: a squash-merged commit shows up as missing even though its content landed, so the operator has to read the list. Two refusals sit next to it: a merge ofmasterthat touches consensus code needs--allow-merge, and a breaking commit in a PATCH range is refused outright — a consensus change is a MINOR. - The protocol-version constants agree (see below).
- The built binary reports the tag. Built the way CI builds it, then asked.
Mainnet's launch-day binaries were hand-built without the
-ldflags: they reporteddevelop, satisfied nohalt_min_version, and were not reproducible from the tag, until thev1.2.0release replaced them; this check is what catches that class of mistake before validators download it. - The upgrade ledger passes
upgrades checkand has an entry for the version, naming the commit being tagged (misc/deployments/<chain>.gno.land/upgrades.json). The check is the one CI runs: the ledger validates and itsUPGRADES.mdis current. The entry is written before the release is cut, with its image digest and binaries null until CI has built them. The script reads the ledger from the checkout it runs in, not from the commit it tags: commit the entry on top of the code being released, and cut from that checkout with--commitnaming the code commit, which is the commit the entry names. A release candidate only warns, since it rehearses the final version's entry; a final release without one, with a ledger that fails the check, or whose entry names another commit, is refused.
Pushing a v* tag triggers
release / chain-tag, which builds
the four platforms, asserts each native binary carries the tag, and attaches
them to the release. It also triggers
release / docker, which publishes the
matching images to ghcr.io/gnolang/gno/*. A chain/<name> launch tag
triggers nothing: its release is the genesis record, created by hand with the
genesis.json and its checksums attached, and no binaries.
Do not hand-upload release binaries — an artifact built outside CI is not
reproducible from the tag and generally lacks the -ldflags that give it a
version at all. Note that -ldflags is only recorded in go version -m output
for builds without -trimpath, so its absence there is not on its own evidence
of a hand-built binary; the binary's own version output is.
A published release is never replaced. The release / chain-tag and
release / docker workflows run on v* tag pushes only, with no manual
trigger, and both refuse to replace what is already out: release / chain-tag
stops before attesting when the release is published, release / docker
before building when the registry already serves the version tag. These
builds are not reproducible, so a replacement would swap the binaries,
CHECKSUMS.txt and images the upgrade ledgers record for others under the
same version. The release is created as a draft and published only once every
asset is attached, so a run that failed before publishing can be re-run, and
the re-run publishes the draft. Images differ: Re-run failed jobs builds
only the images whose job failed before its push (with Re-run all jobs, the
images already pushed fail their check and the run ends red), and an image
pushed but left unsigned stays unsigned: the next candidate or patch
supersedes it. A fault in either workflow surfaces on the release candidate,
cut first on the same commit, and is fixed in the next candidate. A manual
trigger would also attest and sign under a branch's identity, which the
verify commands below refuse.
The binaries release / chain-tag attaches, and the CHECKSUMS.txt beside
them, carry a build-provenance attestation (which workflow built them, from
which commit and tag), and the images release / docker pushes are signed
keylessly by digest, the multi-arch index and each platform image in it. Both
rely on the workflow's identity, not on a key anyone holds. v1.5.0 and every
earlier release carry neither: their tagged commits predate these steps. To
verify what you are about to run:
gh attestation verify gnoland_linux_amd64 --repo gnolang/gno \
--signer-workflow gnolang/gno/.github/workflows/release-chain-tag.yml \
--source-ref refs/tags/v1.6.0
# cosign v3 or later: the signatures are in the Sigstore bundle format
cosign verify ghcr.io/gnolang/gno/gnoland:v1.6.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity https://github.com/gnolang/gno/.github/workflows/release-docker.yml@refs/tags/v1.6.0The release binaries are not reproducible from the tag (they are built
without -trimpath, so gnoland can find GNOROOT), which is why the
attestation, the checksums and the ledger's recorded digests are the
operator's anchors. ci / upgrades-ledger-digests checks, daily, the digests
and checksums the ledgers record for each version: each image digest against
the registry, each ran_as image still resolving, each binary checksum
against its release asset. It reports every difference and fails at the end;
a value still pending the build is listed, not checked.
The testnet runs the same binary as mainnet; only the genesis balances and the
on-chain transactions differ. Every mainnet release is therefore first cut as
a release candidate on the same commit
(cut-release.sh v1.6.0-rc.1 --commit <code-commit> --push), deployed to the
testnet through the operator procedure (set-halt naming the
rc, validators switch at the height), and checked there: the halt fires, an
early start is refused, blocks are produced after the restart, a fresh node
syncs from genesis with the rc. A fix means a new commit and rc.2. Only then
is the final tag cut, on the same commit as the last rc.
release / docker publishes ghcr.io/gnolang/gno/<tool>:vX.Y.Z for every
v* tag, release candidates included, and never re-pushes a version tag. The
four CLI tools — gno, gnokey, gnodev, gnoweb — also get latest, and
only when the tag is the highest final release, so a backport cut after a
newer line never moves latest backwards. GitHub's "Latest" release marker and
misc/install.sh's default follow the same rule, by version order rather than
by creation date. gnoland deliberately has no floating tag: a node image
that moves by itself is incompatible with a coordinated upgrade, because a
validator restarting for an unrelated reason between "release built" and
"halt height" would pull the new binary, and the node would refuse to start it
until the halt. Operators pin the version the halt proposal names. Images are
built from tags, not from branch pushes; :master images are development
builds whose version does not parse.
Two kinds of release page, one job each:
chain/<name>is the genesis record:genesis.json, its.gz, their checksums, and a description of the chain at birth. Frozen; no binaries.vX.Y.Zis a binary you can run: the CI-built binaries andCHECKSUMS.txt, the halt height andhalt_min_versionof the upgrade that made it live, the eight image URLs, and the changelog.
misc/deployments/<chain>/upgrades.json is the ledger: one entry per version
the network has run — the genesis, one per coordinated halt, and one per
rolling patch (kind: rolling: no halt, no floor, no proposal, same MINOR as
its predecessor) — with commit, halt height and time, halt_min_version,
GovDAO proposal, image digest, and a per-platform map of binary downloads with
checksums. The format is
misc/deployments/upgrades/upgrades.schema.json;
the rules — chain order, one genesis, versions the node can order, null for a
fact that has not happened yet and never "" — are enforced by
gno.land/pkg/upgrades, whose tests validate every ledger in the tree and
check that the UPGRADES.md next to it is current:
go run ./misc/deployments/upgrades render misc/deployments/mainnet.gno.land # after editing the JSON
go run ./misc/deployments/upgrades check misc/deployments/mainnet.gno.land # what CI runsAdd the entry before cutting the release, with the image digest and the
binaries null; fill both in, together, once CI has built the release, the
proposal once it exists, and the halt time as soon as the halt has happened;
render, and port both files to master. Only the last entry may still have
null binaries, so they are filled in before the next release's entry is added.
A testnet's ledger names what it ran, release candidates included.
Every halt proposal names the version being released — set-halt.sh refuses a
value the node cannot parse, and an empty one leaves the restart gate off.
For a MINOR bump, the release is only half of it: validators have to stop at the
same height and come back on the new binary. --halt-height prints the GovDAO
proposal to go with the tag, with halt_min_version set to the tag being cut,
and the command that creates it:
misc/deployments/mainnet.gno.land/govdao set-halt 120000 v1.3.0The mechanism, the failure modes, and what a halt looks like in the logs are
documented in gno.land/cmd/gnoland/UPGRADES.md.
A critical fix that cannot wait for the master-first flow: commit on the
chain/ branch, tag, deploy, and back-port to master immediately. The
back-port is the part that gets skipped, and it is the part that matters — until
it lands, the chain is running code nobody can review on master.
The protocol version is one value living in six files, split that way to avoid import cycles rather than because the parts may differ:
| File | Constant |
|---|---|
tm2/pkg/crypto/version.go |
Version |
tm2/pkg/bft/abci/version/version.go |
Version |
tm2/pkg/bft/blockchain/version/version.go |
Version |
tm2/pkg/bft/types/version/version.go |
BlockVersion |
tm2/pkg/p2p/version/version.go |
Version |
tm2/pkg/bft/version/version.go |
Version |
Each guards the next in an init(), so a bump that misses one panics every node
at startup. Move them together:
misc/release/bump-protocol-version.sh --check # are they consistent?
misc/release/bump-protocol-version.sh v1.0.0 # move all sixTestProtocolVersionsAgree in tm2/pkg/bft/version/version_test.go is what
fails in CI if they drift.
A MAJOR bump here partitions the network. VersionSet.CompatibleWith
compares major.minor and refuses a peer whose major differs, so old and new
nodes cannot gossip — independently of any halt height. It must ride a
coordinated upgrade, with every validator switching at the same block.
TestVersionSetCompatibleWith covers the refusal and the negotiated minor;
treat a MAJOR bump as needing a rehearsal on a testnet anyway.
These constants have never been bumped: they still read v1.0.0-rc.0, the value
they were given in 2023. Mainnet launched on it.
A chain reset with an incompatible genesis. Create chain/<name> from the new
genesis commit, tag vMAJOR.0.0, and cut a chain/<name> launch tag carrying
genesis.json. The previous line keeps receiving patches on its own branch,
LTS-style, until it is retired.