Feature Request: Make localpost installable via Homebrew to simplify distribution and installation for macOS and Linux users.
Context:
Currently, users must manually build or install localpost by cloning the repository or downloading a binary. Supporting Homebrew would streamline the installation process, making it easier for users to get started with a simple brew install localpost. Homebrew is a popular package manager, and adding support would improve accessibility and align with common CLI tool distribution practices.
Proposed Steps:
- Create a Homebrew Formula:
- Write a
localpost.rb formula for the Homebrew tap.
- Specify the latest release (e.g., use GitHub release tags or commit hash).
- Include dependencies (e.g., Go, if needed for build).
- Test Installation:
- Verify
brew install localpost works on macOS and Linux.
- Ensure the binary is correctly placed and executable.
- Submit to Homebrew Tap:
- Update Documentation:
- Add installation instructions to
README.md (e.g., brew install localpost).
- Mention Homebrew in setup guides.
Example Formula (rough draft):
class Localpost < Formula
desc "CLI tool for testing HTTP requests with YAML configurations"
homepage "https://github.com/<your-username>/localpost"
url "https://github.com/<your-username>/localpost/archive/refs/tags/vX.Y.Z.tar.gz"
sha256 "<sha256>"
license "<license>"
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w")
bin.install "localpost"
end
test do
system "#{bin}/localpost", "--version"
end
end
Acceptance Criteria:
- Users can install
localpost via brew install localpost.
- Installation works on macOS and Linux (Homebrew-supported platforms).
localpost --version runs successfully post-install.
- Documentation updated with Homebrew instructions.
Additional Notes:
- Consider hosting a custom tap (e.g.,
homebrew-localpost) if homebrew-core criteria are strict.
- Check for dependencies (
go, yaml.v3, go-pretty, etc.)—ensure they’re handled.
- Test with a release binary to avoid requiring Go on user machines.
Interested in Contributing?
Please comment if you’d like to take this on! We can discuss release versioning or tap setup further.
Feature Request: Make
localpostinstallable via Homebrew to simplify distribution and installation for macOS and Linux users.Context:
Currently, users must manually build or install
localpostby cloning the repository or downloading a binary. Supporting Homebrew would streamline the installation process, making it easier for users to get started with a simplebrew install localpost. Homebrew is a popular package manager, and adding support would improve accessibility and align with common CLI tool distribution practices.Proposed Steps:
localpost.rbformula for the Homebrew tap.brew install localpostworks on macOS and Linux.homebrew-coreor a custom tap (e.g.,homebrew-localpost).README.md(e.g.,brew install localpost).Example Formula (rough draft):
Acceptance Criteria:
localpostviabrew install localpost.localpost --versionruns successfully post-install.Additional Notes:
homebrew-localpost) ifhomebrew-corecriteria are strict.go,yaml.v3,go-pretty, etc.)—ensure they’re handled.Interested in Contributing?
Please comment if you’d like to take this on! We can discuss release versioning or tap setup further.