Skip to content

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

Open
deadprogram wants to merge 1 commit into
mainfrom
update-goscript
Open

Replace upgrade.sh with Go-based upgrade tool in tools/upgrade/#50
deadprogram wants to merge 1 commit into
mainfrom
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>
@soypat

soypat commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Thank you for putting the work into this Ron :)

@b0ch3nski b0ch3nski left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be useful for upcoming Go 1.27

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.

3 participants