Skip to content

fix(update): name the installed binary when GOBIN is unset - #31

Merged
mike-diff merged 1 commit into
mainfrom
fix/update-path
Sep 29, 2026
Merged

mike-diff merged 1 commit into
mainfrom
fix/update-path

Conversation

@mike-diff

Copy link
Copy Markdown
Owner

With GOBIN unset, go env GOBIN GOPATH prints an empty first line. installedBinary trimmed the whole output, which dropped that line, so it took GOPATH as GOBIN and printed installed ~/go/ghafk instead of ~/go/bin/ghafk. The install itself was correct; only the message was wrong.

The parsing now keeps the empty first line. A new test covers GOBIN unset and set, and fails with the old trimming.

@mike-diff
mike-diff merged commit 5fdeeb2 into main Sep 29, 2026
2 checks passed
@mike-diff
mike-diff deleted the fix/update-path branch September 29, 2026 03:57
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