Repository navigation
refactor: name main.bend only at the package root - #163
Merged
Merged
Conversation
`src/ez/main.bend` becomes `src/ez/app.bend` and `src/pkg/main.bend` becomes `src/pkg/print.bend`. Only the top-level `main.bend` is an entry: the first is the program module that `main.bend` imports as `App`, and the second is the dry-run script `tests/publish.bend` runs to print what a publish would upload. It is not named `run.bend` because that name is a command's interpreter here. bolt (Emerging-Patterns/bolt#255) treats a directory whose listing names a `main.bend` as its own package for `coverage` and `trace`, so the old names would have split ez into three packages. With the rename, the new bolt lints ez exactly as the old one does: 0 errors, 320 warnings. The rename changes the published ezx package's hash, so it ships as a new version. The decision records in docs/rfc/ keep the old paths, since they describe the layout as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Renames the two nested
main.bendfiles so that only the top-levelmain.bendis an entry:src/ez/main.bend→src/ez/app.bend: the program module thatmain.bendimports asApp.src/pkg/main.bend→src/pkg/print.bend: the dry-run script thattests/publish.bendruns to print what a publish would upload. It is not namedrun.bendbecause that name is a command's interpreter here (src/<cmd>/run.bend).The references are updated in
main.bend,AGENTS.md,tests/publish.bend, the script's usage text, and comments insrc/ez/LAWS.bendandsrc/ez/line.bend. The decision records indocs/rfc/keep the old paths, since they describe the layout as it was.Why
Emerging-Patterns/bolt#255 makes a directory whose listing names a
main.bendits own package forcoverageandtrace. Under the old names, ez would split into three packages once it takes that bolt, and its root SPEC.md's Law cells pointing intosrc/ez/would break.Spec
This is a refactor: no SPEC.md row changes and no tagged law changes.
Evidence
nix flake checkpasses.EZ_ENTRY=src/pkg/path.bend bend src/pkg/print.bendprints the hash, directory and manifest as before.Note
Renaming
src/ez/main.bendchanges the published ezx package's hash, so it ships as a new version.🤖 Generated with Claude Code