Skip to content

Add Homebrew support for localpost installation #7

Description

@moshe5745

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:

  1. 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).
  2. Test Installation:
    • Verify brew install localpost works on macOS and Linux.
    • Ensure the binary is correctly placed and executable.
  3. Submit to Homebrew Tap:
  4. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions