Skip to content

Commit ec5addb

Browse files
authored
Merge pull request #235799 from Homebrew/docker-debug
docker-debug 0.7.10 (new formula)
2 parents e9ddd13 + bf19690 commit ec5addb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Formula/d/docker-debug.rb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
class DockerDebug < Formula
2+
desc "Use new container attach on already container go on debug"
3+
homepage "https://github.com/zeromake/docker-debug"
4+
url "https://github.com/zeromake/docker-debug/archive/refs/tags/v0.7.10.tar.gz"
5+
sha256 "5b7682acc6dcf93d9d260de88c269657348c4ef6db1ef184d794786509ba0af3"
6+
license "MIT"
7+
head "https://github.com/zeromake/docker-debug.git", branch: "master"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "2dfe42bbe836be8f2fd1345be00fb14810fa823ab353d9aababafdf0ba51737b"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "2dfe42bbe836be8f2fd1345be00fb14810fa823ab353d9aababafdf0ba51737b"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "2dfe42bbe836be8f2fd1345be00fb14810fa823ab353d9aababafdf0ba51737b"
13+
sha256 cellar: :any_skip_relocation, sonoma: "1c6629ef906f47228d1942689538b8d4eb8703f0f19bab4b172d6ec86a431f21"
14+
sha256 cellar: :any_skip_relocation, ventura: "1c6629ef906f47228d1942689538b8d4eb8703f0f19bab4b172d6ec86a431f21"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "36b8ffa5f59cbcc3a3b82ff0bc51060accad5a55c8f5a59197f561b89fce2621"
16+
end
17+
18+
depends_on "go" => :build
19+
20+
def install
21+
ldflags = %W[
22+
-s -w
23+
-X github.com/zeromake/docker-debug/version.Version=#{version}
24+
-X github.com/zeromake/docker-debug/version.GitCommit=#{tap.user}
25+
-X github.com/zeromake/docker-debug/version.BuildTime=#{time.iso8601}
26+
-X github.com/zeromake/docker-debug/version.PlatformName=#{tap.user}
27+
]
28+
system "go", "build", *std_go_args(ldflags:), "./cmd/docker-debug"
29+
30+
generate_completions_from_executable(bin/"docker-debug", "completion", shells: [:bash, :zsh, :fish, :pwsh])
31+
end
32+
33+
test do
34+
assert_match version.to_s, shell_output("#{bin}/docker-debug info")
35+
36+
system bin/"docker-debug", "init"
37+
assert_match "mount_dir = \"/mnt/container\"", (testpath/".docker-debug/config.toml").read
38+
39+
assert_match "\"TLS\": false", shell_output("#{bin}/docker-debug config")
40+
end
41+
end

0 commit comments

Comments
 (0)