Skip to content

add install to wrap "go install" - #1079

Closed
ChrisJr404 wants to merge 1 commit into
burrowers:masterfrom
ChrisJr404:install-command
Closed

add install to wrap "go install"#1079
ChrisJr404 wants to merge 1 commit into
burrowers:masterfrom
ChrisJr404:install-command

Conversation

@ChrisJr404

Copy link
Copy Markdown

Adds a garble install command, as requested in #981.

It goes through the same toolexec path as build, test and run, since go install builds packages the same way, so there was nothing install-specific to handle. Now you can obfuscate and install in one step instead of running garble build and moving the binary into GOBIN yourself.

Added a testscript that installs into a temporary GOBIN, checks the binary runs and is obfuscated, and confirms a second install reuses the cache. Also extended the help test for garble install -h.

garble already wraps build, test and run through the same toolexec setup,
and install builds packages the same way, so it slots into that path with
no special handling. It saves obfuscating a binary with garble build and
then moving it into GOBIN by hand.

Fixes burrowers#981.
@mvdan

mvdan commented Aug 25, 2026

Copy link
Copy Markdown
Member

Thanks. I'm not really interested in drive-by AI patches unless the author is an active user or contributor to the project.

@mvdan mvdan closed this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants