Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 1e5758a

Browse files
committed
Add installation instructions for Homebrew and RubyGems to README
1 parent dbcd030 commit 1e5758a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Formula/git-pkgs.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
class GitPkgs < Formula
2+
desc "Track package dependencies across git history"
3+
homepage "https://github.com/andrew/git-pkgs"
4+
url "https://github.com/andrew/git-pkgs/archive/refs/tags/v0.6.2.tar.gz"
5+
sha256 "ccd7a8a5b9cb21c52cc488923ed1318387a9fefa4baff2057bd96b27591577aa"
6+
license "AGPL-3.0"
7+
8+
depends_on "ruby@4"
9+
10+
def install
11+
ENV["GEM_HOME"] = libexec
12+
system "bundle", "install", "--without", "development"
13+
system "gem", "build", "git-pkgs.gemspec"
14+
system "gem", "install", "--ignore-dependencies", "git-pkgs-#{version}.gem"
15+
bin.install libexec/"bin/git-pkgs"
16+
bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV.fetch("GEM_HOME", nil))
17+
end
18+
19+
test do
20+
system bin/"git-pkgs", "--version"
21+
end
22+
end

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ It works across many ecosystems (Gemfile, package.json, Dockerfile, GitHub Actio
1212

1313
## Installation
1414

15+
```bash
16+
brew tap andrew/git-pkgs
17+
brew install git-pkgs
18+
```
19+
20+
Or with RubyGems:
21+
1522
```bash
1623
gem install git-pkgs
1724
```

0 commit comments

Comments
 (0)