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
committed by Ron Evans
parent 1638a87512
commit 888be68522
5 changed files with 868 additions and 515 deletions
+3
View File
@@ -0,0 +1,3 @@
module github.com/tinygo-org/net/tools/upgrade
go 1.22