Skip to content

Commit 8b64693

Browse files
authored
Merge pull request #251139 from Homebrew/vgo
vgo 0.2.0 (new formula)
2 parents e432448 + c71f5fa commit 8b64693

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Formula/v/vgo.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
class Vgo < Formula
2+
desc "Project scaffolder for Go, written in Go"
3+
homepage "https://github.com/vg006/vgo"
4+
url "https://github.com/vg006/vgo/archive/refs/tags/v0.2.0.tar.gz"
5+
sha256 "3a2fee499c91225f2abe1acdb8a640560cda6f4364f4b1aff04756d8ada6282d"
6+
license "MIT"
7+
head "https://github.com/vg006/vgo.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "625060653e73c0e996276bc83f4f6dfc586c10739248ea167e296ef4d1212d64"
11+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "625060653e73c0e996276bc83f4f6dfc586c10739248ea167e296ef4d1212d64"
12+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "625060653e73c0e996276bc83f4f6dfc586c10739248ea167e296ef4d1212d64"
13+
sha256 cellar: :any_skip_relocation, sonoma: "ed465eb32ba71c56fbb1f2430e89f8db84230a825ea361a7332d622065be2ee0"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "00919354e85aa7eabe2a62e05f80e9704ec285193c5caf5a5a752d26af38084f"
15+
end
16+
17+
depends_on "go" => :build
18+
19+
def install
20+
system "go", "build", *std_go_args(ldflags: "-s -w")
21+
22+
generate_completions_from_executable(bin/"vgo", "completion")
23+
end
24+
25+
test do
26+
expected = if OS.mac?
27+
"Failed to build the vgo tool"
28+
else
29+
"┃ ✔ Built vgo\n┃ ✔ Installed vgo"
30+
end
31+
assert_match expected, shell_output("#{bin}/vgo build 2>&1")
32+
end
33+
end

0 commit comments

Comments
 (0)