File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 11class Prt < Formula
22 desc "Open GitHub pull requests in isolated git worktrees"
33 homepage "https://github.com/BradyPlanden/prt"
4- url "https://github.com/BradyPlanden/prt/archive/refs/tags/v0.1.1 .tar.gz"
5- sha256 "4db2e61f19fa4d82361b3b08278d146e822d5a23416b2f1571e8ad66305d0457 "
4+ url "https://github.com/BradyPlanden/prt/archive/refs/tags/v0.2.0 .tar.gz"
5+ sha256 "e0b908a952b01defac323d3e6a0f9073562cbefbf312f91d72ed953142067162 "
66 license "MIT"
77
88 depends_on "go" => :build
Original file line number Diff line number Diff line change 1+ class PrtAT02 < Formula
2+ desc "Open GitHub pull requests in isolated git worktrees"
3+ homepage "https://github.com/BradyPlanden/prt"
4+ url "https://github.com/BradyPlanden/prt/archive/refs/tags/v0.2.0.tar.gz"
5+ sha256 "e0b908a952b01defac323d3e6a0f9073562cbefbf312f91d72ed953142067162"
6+ license "MIT"
7+
8+ keg_only :versioned_formula
9+
10+ depends_on "go" => :build
11+
12+ def install
13+ ldflags = %W[
14+ -s
15+ -w
16+ -X
17+ main.version=v#{ version }
18+ ]
19+
20+ system "go" , "build" , *std_go_args ( ldflags : ldflags ) , "./cmd/prt"
21+ end
22+
23+ test do
24+ assert_match "Open a GitHub PR" , shell_output ( "#{ bin } /prt --help" )
25+ end
26+ end
You can’t perform that action at this time.
0 commit comments