This is an internal Homebrew tap for our organization's tools.
First, add this tap to your Homebrew installation:
brew tap sysintelligent/sysintelligentThen you can install any of our internal tools using:
brew install [tool-name]To remove this tap:
brew untap sysintelligent/sysintelligentdopctl: A tool for managing DevOps operations and infrastructure- Install with:
brew install dopctl - Dependencies: go, node, npm
- Install with:
To add a new formula:
- Create a new Ruby file in the
Formuladirectory - Write the formula following Homebrew's guidelines
- Test the formula locally
- Submit a pull request
Each formula is a Ruby file that describes how to install a package. Here's the basic structure:
class ToolName < Formula
desc "Short description of the tool"
homepage "https://github.com/sysintelligent/tool-name"
url "https://github.com/sysintelligent/tool-name/archive/refs/tags/v1.0.0.tar.gz"
sha256 "PACKAGE_SHA256_CHECKSUM"
license "MIT" # or appropriate license
# Dependencies
depends_on "dependency1"
depends_on "dependency2" => :build # Only needed at build time
def install
# Installation commands
system "make", "install", "PREFIX=#{prefix}"
end
test do
# Test commands to verify installation
system "#{bin}/tool-name", "--version"
end
endKey components:
desc: A brief description of your toolhomepage: URL to the tool's documentation or repositoryurl: Download URL for the source codesha256: SHA-256 checksum of the source archivedepends_on: List of dependenciesinstall: Instructions for building and installingtest: Commands to verify the installation
Before submitting a new formula or updating an existing one, test it locally:
# Test installation from the formula file
brew install --build-from-source ./Formula/tool-name.rb
# Verify the installation
brew test ./Formula/tool-name.rb
# Audit the formula for potential issues
brew audit --strict --online ./Formula/tool-name.rb# Remove existing installation
brew uninstall tool-name
# Install from the updated formula
brew install --build-from-source ./Formula/tool-name.rb
# Verify everything works
brew test ./Formula/tool-name.rbWhen updating a formula to a new version, you'll need the SHA-256 of the new release:
curl -L <url> | shasum -a 256To update an existing formula:
- Update the version and SHA in the formula file
- Test the changes locally
- Submit a pull request