Skip to content

fix: greywall setup downloads greyproxy binary instead of building from source#45

Closed
Joyce-O wants to merge 4 commits intoGreyhavenHQ:mainfrom
Joyce-O:feat/fix-setup-and-docs
Closed

fix: greywall setup downloads greyproxy binary instead of building from source#45
Joyce-O wants to merge 4 commits intoGreyhavenHQ:mainfrom
Joyce-O:feat/fix-setup-and-docs

Conversation

@Joyce-O
Copy link
Copy Markdown
Contributor

@Joyce-O Joyce-O commented Mar 20, 2026

fix: greywall setup downloads greyproxy binary instead of building from source

Previously, greywall setup cloned greyproxy and ran go build, requiring a Go toolchain and failing silently without one. It now downloads the pre-built binary from GitHub Releases.

Changes
internal/proxy/install.go

  • Install() downloads the latest stable release via fetchLatestRelease()
  • Extracted fetchReleaseFor() — generic GitHub release fetcher
  • IsOlderVersion now accepts versions with or without v prefix
  • Added CheckLatestTag() — fetches the latest stable release tag, used by runSetup and runCheck

cmd/greywall/main.go

  • runSetup and runCheck use CheckLatestTag instead of the old CheckLatestVersion
  • Fixed duplicate keyring injection block (merge artifact)
  • Updated setup description to mention launchd on macOS

README.md

  • Added note that source builds don't include greyproxy — run greywall setup separately
  • Added greywall setup to go install instructions

Tests

  • TestCheckLatestTag_OK and TestCheckLatestTag_APIError — version check via httptest server

@Joyce-O Joyce-O marked this pull request as ready for review March 20, 2026 17:56
@Joyce-O Joyce-O marked this pull request as draft March 20, 2026 18:00
@Joyce-O Joyce-O force-pushed the feat/fix-setup-and-docs branch 3 times, most recently from 53e1905 to 47ddc51 Compare March 27, 2026 09:04
@Joyce-O Joyce-O marked this pull request as ready for review March 27, 2026 09:05
@Joyce-O Joyce-O force-pushed the feat/fix-setup-and-docs branch from 47ddc51 to cbdf96c Compare March 27, 2026 16:32
@Joyce-O Joyce-O force-pushed the feat/fix-setup-and-docs branch 5 times, most recently from e1744e6 to 18a5470 Compare March 31, 2026 17:40
CheckLatestVersion was removed in favor of CheckLatestTag, but runSetup
was missed. Also passes the resolved tag to Install so the upgrade
installs the exact version that was checked.
@Joyce-O Joyce-O force-pushed the feat/fix-setup-and-docs branch from 18a5470 to 944cd40 Compare March 31, 2026 17:45
@Joyce-O
Copy link
Copy Markdown
Contributor Author

Joyce-O commented Mar 31, 2026

No longer relevant.

@Joyce-O Joyce-O closed this Mar 31, 2026
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