diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ec00d8..5dd331f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: - name: Cache Homebrew Bundler RubyGems id: cache - uses: actions/cache@v3 + uses: actions/cache@v3.4.0 with: path: ${{ steps.set-up-homebrew.outputs.gems-path }} key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} diff --git a/Formula/lhctl.rb b/Formula/lhctl.rb index 99fcfb7..fbc43fa 100644 --- a/Formula/lhctl.rb +++ b/Formula/lhctl.rb @@ -1,11 +1,11 @@ class Lhctl < Formula desc "LittleHorse CLI for managing all things LittleHorse" - homepage "https://littlehorse.dev/docs/developer-guide/lhctl" + homepage "https://littlehorse.io/docs/server/developer-guide/lhctl" url "https://github.com/littlehorse-enterprises/littlehorse.git", - tag: "v0.11.2", - revision: "fd1ff8340336b411a0f208b9bd4d01fed0d5985f" + tag: "v0.12.1", + revision: "0a139369d72e045481f8436124f35f3da330be97" license "SSPL-1.0" - head "https://github.com/littlehorse-enterprises/littlehorse.git", tag: "v0.11.2" + head "https://github.com/littlehorse-enterprises/littlehorse.git", tag: "v0.12.1" depends_on "go" => :build diff --git a/Formula/lhctl@0.11.rb b/Formula/lhctl@0.11.rb new file mode 100644 index 0000000..ef1622f --- /dev/null +++ b/Formula/lhctl@0.11.rb @@ -0,0 +1,20 @@ +class LhctlAT011 < Formula + desc "LittleHorse CLI for managing all things LittleHorse" + homepage "https://littlehorse.io/docs/server/developer-guide/lhctl" + url "https://github.com/littlehorse-enterprises/littlehorse.git", + tag: "v0.11.2", + revision: "fd1ff8340336b411a0f208b9bd4d01fed0d5985f" + license "SSPL-1.0" + head "https://github.com/littlehorse-enterprises/littlehorse.git", tag: "0.11.2" + + 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