Repository navigation
Conversation
A release takes two rounds. `riverproui`'s `go.sum` needs the hash of a `riverui` zip that exists only once `riverui` is tagged and published, and neither CI nor the River Pro UI image build can resolve a `riverui` version that the module proxy doesn't serve yet. So `riverui` releases first, and a second pull request and tag move `riverproui` to it. Module zips are reproducible, so building the frontend and packaging `riverui` from an export of a commit's tracked files, as the release workflow does, produces the zip that the release will publish. A new script packages the `riverui` version that `riverproui` requires into a directory that Go can use as a `file://` module proxy ahead of `GOPROXY`, and can run a command in `riverproui` against it. It skips versions that are already published, checking riverui's own proxy rather than the public mirror, which would remember the miss for a version about to be released. On an ordinary commit it only makes that check, and the command uses the regular module cache. When it packages a version, the command gets a throwaway module cache, so candidate zips never stay in the regular cache under release version numbers. The frontend build clears `NODE_ENV` and `VITE_` variables, which Vite would otherwise bake into the bundle. `make release/prepare` sets `riverproui`'s `riverui` requirement to `$VERSION` and writes its `go.sum` lines with a `go mod tidy` against the candidate proxy. `make release/verify` builds `riverproui` against it, so a `riverui` change after the hashes were written fails with a checksum mismatch. CI and the River Pro UI image build package the candidate in a new job that has no secrets and only reads the repository, because packaging runs npm. On an ordinary commit that job only checks that the version is published and skips Node.js. Otherwise it uploads the candidate as an artifact. The River Pro UI CI job downloads `riverproui`'s dependencies through it, which verifies the candidate against the committed `go.sum` before any of its code builds. The image build passes it to the Dockerfile as a named build context, which is empty by default, for the same verified download. The release workflow needs no change: each tag's run packages only its own module from the tagged commit and never resolves `riverproui`'s dependencies, so both tags can point at the same commit. The release instructions now describe the one-commit flow, with `make release/verify` run on the merged commit before tagging.
brandur
approved these changes
Nov 25, 2026
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.
🤖 Releasing
riveruiandriverprouitakes two pull requests today, with the two tags on different commits.riverprouirequiresriveruiat the same version, and itsgo.summust hold that version's hash. Neither the version nor the hash exists untilriveruiis tagged and published. Soriveruiis released first. Then a second PR movesriverprouito the new version, and that PR's merge commit gets theriverprouitag. This PR cuts that down to one PR and one commit that carries both tags.How this removes the second round
Module zips are reproducible. Packaging the same commit gives the same zip and the same
go.sumhash. So theriveruizip can be built before the release, and its hash can be committed.A new script,
packager/build-candidate-proxy.sh, does this. It builds the frontend and packagesriveruifrom the commit's tracked files, the same way the release workflow does. It writes the zip to a directory that Go uses as afile://module proxy, ahead of the real proxies. This description calls that zip the candidate. If the version is already published, the script packages nothing.make release/preparesetsriverproui'sriveruirequirement to$VERSION. Then it runsgo mod tidyagainst the candidate, which writes the hash intogo.sum.make release/verifybuildsriverprouiagainst a new candidate. Ifriveruichanged after the hash was written, the build fails with achecksum mismatch.riverproui's dependencies through it, so a wrong hash fails the PR.The release workflow doesn't change. Each tag's run packages only its own module and never resolves
riverproui's dependencies, so both tags can point at the same commit.A release after this PR
VERSIONand start a branch.CHANGELOG.md. Make sure thereplaceforriveruiinriverproui/go.modis commented out. Runmake release/prepare. The changelog is part of theriveruizip, so run it again after any later change toriverui, including the changelog.masterand runmake release/verify. Then tag$VERSIONandriverproui/$VERSIONon that commit and push both tags.The development docs now describe this flow in full.
Things to know when reviewing
riveruiversion is already published. The job then checks out the repository, installs Go, and asks riverui's module proxy whether the version exists. It skips Node.js. The River Pro UI CI job and the image build now wait for this job.!cancelled()). Without this they would be skipped, and a skipped required check does not block a merge. With it, a release commit with no candidate fails in those jobs. The later image jobs check the image build's result directly for the same reason.riveruiv0.23.0, which is already published, so it only runs the ordinary path. The release path (package the candidate, upload it, download it, and build through it in CI and in the image build) has been rehearsed locally. It runs on GitHub Actions for the first time in the next release PR.