Repository navigation
fix(builtins): stage gomod_tidy manifest updates - #1240
Conversation
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: β Files ignored due to path filters (3)
π Files selected for processing (3)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. π WalkthroughWalkthroughThe changes add an ChangesIntegration test coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: βͺ Minimal Β· up to This PR adds localized Go and shell linting behavior plus an ls-lint builtin; no actionable merge-blocking risk remains after normal checks and review. Poem
π₯ Pre-merge checks | β 4 | β 1β Failed checks (1 warning)
β Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.) Full details: Title checkExplanation The title clearly describes the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
β Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1428b37. Configure here.
Greptile SummaryThe PR updates
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (4): Last reviewed commit: "fix(builtins): stage gomod_tidy manifest..." | Re-trigger Greptile |
Instruction countsNothing was compared, and so nothing was gated. No series appears on both sides: either the base has no measurements recorded, or the two were measured on different runner classes, which are deliberately not comparable β counts shift between machine types by more than a real regression does. New, nothing to compare against: Only instruction counts gate. Wall clock is shown for context β on identical hardware it moves 4-20% run to run. Measured by tak β instruction-counted CLI benchmarks, stored in this repository's git notes.
|
3d6980b to
ad77c5a
Compare
ad77c5a to
0dc0d59
Compare
### π Features - **(builtins)** add go_fix linter by [@sahidvelji](https://github.com/sahidvelji) in [#1224](#1224) - **(builtins)** add ls_lint linter by [@sahidvelji](https://github.com/sahidvelji) in [#1238](#1238) - **(builtins)** add golangci_lint_fmt formatter by [@sahidvelji](https://github.com/sahidvelji) in [#1244](#1244) - **(builtins)** add shellcheck fix via check_diff by [@sahidvelji](https://github.com/sahidvelji) in [#1237](#1237) - **(pkl)** embed the matching-version pkl package by [@sahidvelji](https://github.com/sahidvelji) in [#1218](#1218) - **(step)** render `dir` through tera by [@sahidvelji](https://github.com/sahidvelji) in [#1219](#1219) - **(step)** recheck applied diffs by [@jdx](https://github.com/jdx) in [#1243](#1243) - **(step)** allow configured command failures by [@jdx](https://github.com/jdx) in [#1291](#1291) ### π Bug Fixes - **(builtins)** repair Go linters that report success on bad code by [@sahidvelji](https://github.com/sahidvelji) in [#1225](#1225) - **(builtins)** broaden gomod_tidy glob to run tidy on .go changes by [@sahidvelji](https://github.com/sahidvelji) in [#1236](#1236) - **(builtins)** stage gomod_tidy manifest updates by [@jdx](https://github.com/jdx) in [#1240](#1240) - **(builtins)** recheck partial diff fixes by [@jdx](https://github.com/jdx) in [#1245](#1245) - **(builtins)** correct gitleaks scan modes by [@jdx](https://github.com/jdx) in [#1248](#1248) - **(stash)** skip empty pathspec stashes by [@jdx](https://github.com/jdx) in [#1283](#1283) - **(step)** resolve Windows command shims by [@jdx](https://github.com/jdx) in [#1221](#1221) - **(step)** relativize workspace paths to step directory by [@jdx](https://github.com/jdx) in [#1242](#1242) ### π Documentation - clarify subproject monorepo setup by [@jdx](https://github.com/jdx) in [#1239](#1239) - improve onboarding and navigation by [@jdx](https://github.com/jdx) in [#1247](#1247) - disable code ligatures by [@jdx](https://github.com/jdx) in [#1264](#1264) - publish llms.txt index by [@jdx](https://github.com/jdx) in [#1272](#1272) ### π‘οΈ Security - add sponsor logos to readme by [@jdx](https://github.com/jdx) in [#1250](#1250) ### π Other Changes - **(ci)** adopt mbx for Rust builds by [@jdx](https://github.com/jdx) in [#1229](#1229) - **(ci)** restrict trusted mbx runs to jdx by [@jdx](https://github.com/jdx) in [#1254](#1254) - **(ci)** isolate mbx OIDC permissions by [@jdx](https://github.com/jdx) in [#1258](#1258) - **(ci)** compare mbx with rust-cache by [@jdx](https://github.com/jdx) in [#1267](#1267) - **(ci)** adopt mbx 0.5.4 by [@jdx](https://github.com/jdx) in [#1279](#1279) - **(ci)** pin mr-boxington-action v1.0.1 by [@jdx](https://github.com/jdx) in [#1280](#1280) - **(ci)** use default Rust for cache benchmark by [@jdx](https://github.com/jdx) in [#1284](#1284) - **(ci)** bump mr-boxington action by [@jdx](https://github.com/jdx) in [#1282](#1282) - **(ci)** use server cache for dispatched benchmarks by [@jdx](https://github.com/jdx) in [#1285](#1285) - **(ci)** adopt mbx 0.7.0 by [@jdx](https://github.com/jdx) in [#1286](#1286) - **(sponsors)** replace 37signals with omacom foundation by [@jdx](https://github.com/jdx) in [#1249](#1249) - generate release notes before publishing by [@jdx](https://github.com/jdx) in [#1227](#1227) - automate generated cli versions by [@jdx](https://github.com/jdx) in [#1252](#1252) - seed mbx cache for fork PRs by [@jdx](https://github.com/jdx) in [#1262](#1262) - notarize the macOS release binary by [@jdx](https://github.com/jdx) in [#1266](#1266) - benchmark mbx against rust-cache on Linux by [@jdx](https://github.com/jdx) in [#1275](#1275) - remove pinned rust toolchain by [@jdx](https://github.com/jdx) in [#1235](#1235) - back mbx with the GitHub Actions cache alone by [@jdx](https://github.com/jdx) in [#1287](#1287) ### π¦οΈ Dependency Updates - update rust crate pklr to v1.5.0 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1222](#1222) - lock file maintenance by [@renovate[bot]](https://github.com/renovate[bot]) in [#1226](#1226) - bump usage to 6.4.0 by [@jdx](https://github.com/jdx) in [#1228](#1228) - update anthropics/claude-code-action action to v1.0.194 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1230](#1230) - update jdx/mise-action action to v4.2.5 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1231](#1231) - update rust crate demand to v2.1.0 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1241](#1241) - update anthropics/claude-code-action action to v1.0.195 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1251](#1251) - update rust crate pklr to v1.5.1 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1260](#1260) - bump usage to 6.4.1 by [@jdx](https://github.com/jdx) in [#1273](#1273) - bump tak and mbx by [@jdx](https://github.com/jdx) in [#1274](#1274) - remove rust toolchain pins by [@jdx](https://github.com/jdx) in [#1276](#1276) ### New Contributors - @sahidvelji made their first contribution in [#1237](#1237) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Mechanical version and documentation URL updates with no runtime code changes in the diff. > > **Overview** > **Cuts release v1.57.0** by bumping the `hk` crate and CLI metadata from **1.56.1** to **1.57.0** (`Cargo.toml`, `Cargo.lock`, `hk.usage.kdl`, generated CLI docs). > > Adds the **[1.57.0] CHANGELOG** entry (features, fixes, CI/release work, and dependency updates since 1.56.1) and updates every **Pkl `amends` / `import` package URL** in README, docs, examples, and `hk-example.pkl` to point at the new GitHub release artifacts. > > No application logic changes in this diff; it packages already-merged work. Notable themes called out in the new changelog include new builtins (`go_fix`, `ls_lint`, `golangci_lint_fmt`, shellcheck fix), step-engine improvements (Tera `dir`, diff recheck, optional command failures), embedded matching-version Pkl, and assorted builtin/stash/Windows path fixes. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 57fec76. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>

Summary
go.modandgo.sumupdates produced bygomod_tidywhen Go source changesls_lintbuiltin to feat(builtins): add ls_lint linterΒ #1238Related to #1234.
Test evidence
mise run pkl:genmise run buildmise run test:bats test/gomod_tidy_nested_module.batsgit diff --checkAI-assisted β Tool: Codex; model: unavailable/unavailable; version: unavailable.
Note
Low Risk
Builtin staging behavior only; no auth, runtime, or broad execution changes beyond ensuring Go module manifests are indexed after tidy.
Overview
gomod_tidy now declares
stage = List("go.mod", "go.sum")so manifest updates fromgo mod tidyare added to the index when the step was triggered by a.gochange (default staging only followed the step globs and could leave tidiedgo.mod/go.sumunstaged).A new bats case in
gomod_tidy_nested_module.batscovers a nested module: after staging onlysvc/main.go,hk fix --step gomod_tidymust leave both the Go file andsvc/go.modin the cached diff with no leftover unstaged manifest changes.Reviewed by Cursor Bugbot for commit 0dc0d59. Bugbot is set up for automated code reviews on this repo. Configure here.