Skip to content

Patch Orbit v0.1.2 — Compare import sources

Latest

Choose a tag to compare

@chenpingan-dev chenpingan-dev released this 15 Oct 07:22

A Go package with changed source now exposes its own imports, so a review can explain which sources appear only before or after the change.

  • Compare base-only, head-only and shared file sources, with both snapshot line numbers
  • Moving an import within the same file keeps one paired source; renamed files remain separate
  • Filter evidence without changing the union graph, review counts or test targets
  • Open the complete impact path separately, with all import locations accessible
  • Fix source positions affected by Go //line directives: locations point to the physical repository file
  • Keep v1 JSON compatibility, Chinese/English controls, Microsoft YaHei and readable phone layouts

中文:新增改动前后导入来源对照,改动包也能直接查看自己的依赖;修复 //line 指令导致源码行号指错的问题。筛选来源不会缩小地图的复查范围,状态只说明在哪个快照解析到来源,不保证运行时安全。

Install with Go 1.23+:

go install github.com/chenpingan-dev/patch-orbit/cmd/orbit@v0.1.2
orbit -repo YOUR_GO_REPO -base HEAD~1 -head HEAD -html impact.html

Or unzip a platform binary. Git is required. Packages include the bilingual guide, source-comparison screenshots and analysis boundaries. The standalone HTML workspace contains a labeled synthetic notebook repository; it executes no project code or tests.

Verified: 10 Go tests; Go 1.23/1.27 on Windows/Linux with vet, build and Linux race checks; 51 browser scenarios covering sources, imports/exports, keyboard, languages and phone layouts; Windows executable against isolated committed fixtures with untouched worktree data. Linux amd64 and macOS arm64 binaries are cross-compiled, not executed on those operating systems locally. SHA256SUMS covers the four payload files.