Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Formula/l/logdy.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Logdy < Formula
desc "Web based real-time log viewer"
homepage "https://logdy.dev"
url "https://github.com/logdyhq/logdy-core/archive/refs/tags/v0.13.tar.gz"
sha256 "e23010f4979f79b6545181d35a27b4e80f08815f7f9bfb089eb3d1bd4879fa0d"
url "https://github.com/logdyhq/logdy-core/archive/refs/tags/v0.13.0.tar.gz"
sha256 "7aec95af51d4d954ad01fcdd7e925269fa4cdbadab5484761c56fc54dc122c38"
license "Apache-2.0"

bottle do
Expand All @@ -18,12 +18,13 @@ class Logdy < Formula
depends_on "go" => :build

def install
ldflags = "-s -w -X 'main.Version=#{version}'"
ldflags = "-s -w -X main.Version=#{version}"
system "go", "build", *std_go_args(ldflags:)
end

test do
r, _, pid = PTY.spawn("#{bin}/logdy --port=#{free_port}")
port = free_port
r, _, pid = PTY.spawn("#{bin}/logdy --port=#{port}")
assert_match "Listen to stdin (from pipe)", r.readline
ensure
Process.kill("TERM", pid)
Expand Down