Replace upgrade.sh with Go-based upgrade tool in tools/upgrade/

Rewrite the bash upgrade script as a standalone Go program for better
portability and maintainability. The tool preserves all existing behavior:
three-category file classification, dry-run mode, Go source resolution
(gvm/GOROOT/download), 3-way merge via diff3, and colored output.

Build: cd tools/upgrade && go build -o upgrade .
Run:   ./tools/upgrade/upgrade --dry-run

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2026-04-17 10:55:55 +02:00
parent b2d3a2b05b
commit e82bdb20d3
5 changed files with 868 additions and 515 deletions
+2
View File
@@ -23,3 +23,5 @@ go.work
# Upgrade script work/report directories
.upgrade-work/
.upgrade-report/
./tools/upgrade/upgrade