Skip to content

Commit 16bf54f

Browse files
committed
lazydocker: use tarball, add build date
1 parent fd4559c commit 16bf54f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Formula/l/lazydocker.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
class Lazydocker < Formula
22
desc "Lazier way to manage everything docker"
33
homepage "https://github.com/jesseduffield/lazydocker"
4-
url "https://github.com/jesseduffield/lazydocker.git",
5-
tag: "v0.24.1",
6-
revision: "be051153525b018a46f71a2b2ed42cde39a1110c"
4+
url "https://github.com/jesseduffield/lazydocker/archive/refs/tags/v0.24.1.tar.gz"
5+
sha256 "f54197d333a28e658d2eb4d9b22461ae73721ec9e4106ba23ed177fc530c21f4"
76
license "MIT"
87

98
bottle do
@@ -19,7 +18,12 @@ class Lazydocker < Formula
1918
depends_on "go" => :build
2019

2120
def install
22-
ldflags = "-s -w -X main.version=#{version} -X main.buildSource=homebrew"
21+
ldflags = %W[
22+
-s -w
23+
-X main.version=#{version}
24+
-X main.date=#{time.iso8601}
25+
-X main.buildSource=homebrew
26+
]
2327
system "go", "build", "-mod=vendor", *std_go_args(ldflags:)
2428
end
2529

0 commit comments

Comments
 (0)