Repository navigation
feat(publish): send the README.md beside the entry - #2033
Merged
Merged
Conversation
bend --publish now takes the README.md next to the entry file into the package, where BendHub shows it on the package's page. A README.md next to any other file stays out, and one over 64 KB, the most the hub takes, is refused before mining. The ping gate checks both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ngngardner
added a commit
to Emerging-Patterns/ez
that referenced
this pull request
Nov 8, 2026
bend 2.0.40 publishes the README.md beside the entry as part of the package (bendlang/bend#2033), and Base 2.0.40 declares `type Tool` and Event constructors such as `Lost`. ez now builds, checks and proves on 2.0.40, and computes the hash 2.0.40's `--publish` uploads. - The walk takes along the file named exactly README.md in the entry's directory, at README.md in the package, once the walk went to its end; a README beside any other file stays out, and one over 65536 UTF-8 bytes refuses the package, as bend refuses it before mining (laws/ReadmeGoesAlong, ReadmeAsked, NoReadmeAsBefore, ReadmeOverRefused, StoppedWalkTakesNoReadme). - A name taken before 2.0.40 still locks: when the walked manifest does not hash to the ledger's name, `ez lock` judges the checkout without its README, then without its README and LICENSE files; `ez lock --upgrade` weighs a pin the same way (laws/GitNamedWithoutReadme, UpgradeNamedWithoutReadme, OldNameLeavesReadmeOut, ReadmelessKeepsOtherFiles). GitNamedWithoutLicense and UpgradeNamedWithoutLicense are restated over that cascade. - The hub description passes the README over, as the hub does (laws/PublishSaysDescription: hub_readme_named, hub_skips_readme). - `M.Tool` is `M.Cli` and `PW.Tool` is `PW.ToolAsk`, off Base's names. - ezhttp v0.23.0 (from v0.14.0): Client.Response carries bytes, read with body_text; BEND_LIBSSL replaces EZ_LIBSSL. Pinned by the hub's name for it, 0x7367809738fddd234b8d2bed772ad2cf, which 0.23.0 was published under without its README, so the lock judges it by the older rule. - flake bend at 222de99 (2.0.40); [tools.bolt] v1.27.0 with `unsafe` dropped, `coverage` named, and the newly firing pick, concat and prefix rules at warn; nix-flake-check at actions feaa011. - bend-lib.nix lays a hub package's manifest as `ez fetch` does, bootstrap.sh leaves hub packages to bend, and mkFresh skips its offline relock when the lock records a hub package (ezhttp 0.23 imports bend-kit-* from the hub), since `ez lock` takes hub content from the hub and the sandbox has no network. - tests/publish and tests/publishing publish a package with a README; tests/fetch reads ezhttp's errno-named connect failure. BREAKING CHANGE: ez's 0x hash for a package with a README.md beside its entry now covers that README, as bend 2.0.40's `--publish` does, so `ez add` and `ez publish` name such a package differently than before. ez needs bend 2.0.40 or later. Ledgers written before keep their names.
This was referenced Nov 13, 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.
bend <file> --publishnow includes theREADME.mdnext to the entry file in the package. BendHub renders it on the package's page.README.mdbeside any other file stays out.Release order
Don't ship this in a Bend release before the hub accepts READMEs (bendlang-private/bend-lang.com PR 118). Today's production hub refuses any path other than
.bend,.c,.jsandLICENSE. A CLI with this change would fail to publish any project that has aREADME.mdbeside its entry.Checks
gates/ping.ts(SITE_REPO on the hub branch): PASS 83 / 83. Two new checks: a publish with a README at the entry plus one insub/stores only the first, inside the hash; a 64 KB+ README is refused.gates/repo.ts: PASS 54 / 54.main.tsis at 13.0k of 16k ttok.GUIDE.mdis already at exactly 8000 ttok, its cap, so it doesn't mention the README. The hub's guide covers it.🤖 Generated with Claude Code