Skip to content

Commit

Permalink
build(lhctl): publish 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mijailr committed Aug 26, 2024
1 parent 1ea528d commit 7c444b4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
11 changes: 6 additions & 5 deletions Formula/lhctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ class Lhctl < Formula
desc "LittleHorse CLI for managing all things LittleHorse"
homepage "https://littlehorse.dev/docs/developer-guide/lhctl"
url "https://github.com/littlehorse-enterprises/littlehorse.git",
tag: "0.10.0",
revision: "e16a552cc8761058a65f9f69298bea3f360716e8"
tag: "v0.11.0",
revision: "4b018c1b62e6104ddff1e62f7631ed88b3393352"
license "SSPL-1.0"
head "https://github.com/littlehorse-enterprises/littlehorse.git", branch: "master"
head "https://github.com/littlehorse-enterprises/littlehorse.git", tag: "v0.11.0"

depends_on "go" => :build

def install
ldflags = "-X main.version=#{version} -X main.buildSource=homebrew"
system "go", "build", "-C", "lhctl", *std_go_args(ldflags: ldflags)
system "./local-dev/setup-go.sh"
ldflags = "-X main.version=#{version} -X main.commit=homebrew"
system "go", "build", "-C", "lhctl", *std_go_args(ldflags:)
end

test do
Expand Down
20 changes: 20 additions & 0 deletions Formula/lhctl@0.10.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class LhctlAT010 < Formula
desc "LittleHorse CLI for managing all things LittleHorse"
homepage "https://littlehorse.dev/docs/developer-guide/lhctl"
url "https://github.com/littlehorse-enterprises/littlehorse.git",
tag: "0.10.1",
revision: "f2be589d08b92349883cf7a8b696df9dabd5484c"
license "SSPL-1.0"
head "https://github.com/littlehorse-enterprises/littlehorse.git", tag: "0.10.1"

depends_on "go" => :build

def install
ldflags = "-X main.version=#{version} -X main.buildSource=homebrew"
system "go", "build", "-C", "lhctl", *std_go_args(ldflags:)
end

test do
assert_match "Generally a UserTaskRun", shell_output("#{bin}/lhctl --help")
end
end
2 changes: 1 addition & 1 deletion Formula/lhctl@0.7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class LhctlAT07 < Formula

def install
ldflags = "-X main.version=#{version} -X main.buildSource=homebrew"
system "go", "build", "-C", "lhctl", *std_go_args(ldflags: ldflags)
system "go", "build", "-C", "lhctl", *std_go_args(ldflags:)
end

test do
Expand Down
4 changes: 2 additions & 2 deletions Formula/lhctl@0.8.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Lhctl < Formula
class LhctlAT08 < Formula
desc "LittleHorse CLI for managing all things LittleHorse"
homepage "https://littlehorse.dev/docs/developer-guide/lhctl"
url "https://github.com/littlehorse-enterprises/littlehorse.git",
Expand All @@ -11,7 +11,7 @@ class Lhctl < Formula

def install
ldflags = "-X main.version=#{version} -X main.buildSource=homebrew"
system "go", "build", "-C", "lhctl", *std_go_args(ldflags: ldflags)
system "go", "build", "-C", "lhctl", *std_go_args(ldflags:)
end

test do
Expand Down

0 comments on commit 7c444b4

Please sign in to comment.