Skip to content

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

Open
deadprogram wants to merge 1 commit intomainfrom
update-goscript
Open

Replace upgrade.sh with Go-based upgrade tool in tools/upgrade/#50
deadprogram wants to merge 1 commit intomainfrom
update-goscript

Conversation

@deadprogram
Copy link
Copy Markdown
Member

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

Addresses #48

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant