Skip to content
Merged

tea 0.14.2 #290079

Changes from all commits
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
24 changes: 12 additions & 12 deletions Formula/t/tea.rb
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
class Tea < Formula
desc "Command-line tool to interact with Gitea servers"
homepage "https://gitea.com/gitea/tea"
url "https://gitea.com/gitea/tea/archive/v0.14.1.tar.gz"
sha256 "848b6b2fafa270fa77b4e278d521bfcc16d2f721c45ac90f08f5b16dc630c3f9"
url "https://gitea.com/gitea/tea.git",
tag: "v0.14.2",
revision: "88f5cdcafadbafd992cbf6ea31f9f29512263452"
license "MIT"
head "https://gitea.com/gitea/tea.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_tahoe: "8002beb5d9ee2061005984b90a21f7414292fe21d58b3e38ed4d6c3d35ef4304"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "8002beb5d9ee2061005984b90a21f7414292fe21d58b3e38ed4d6c3d35ef4304"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8002beb5d9ee2061005984b90a21f7414292fe21d58b3e38ed4d6c3d35ef4304"
sha256 cellar: :any_skip_relocation, sonoma: "343f8e211413ae14e71279aa52b91f1ab00c7001bb00e459ce2818e26ed136f8"
sha256 cellar: :any_skip_relocation, arm64_linux: "53d1a65bddb69f2f4e2d9a6a7f76f5df4db3533fadaef90416fbfd5e2ccafebf"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5f1b2c7a307df6a8549827cfee645eaa43e23b07582baa412592119b4248f00d"
sha256 cellar: :any_skip_relocation, arm64_tahoe: "631c12e1cd0d3a577ac725b6628047c891f9f96ff8c9c211537735b403577efa"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "631c12e1cd0d3a577ac725b6628047c891f9f96ff8c9c211537735b403577efa"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "631c12e1cd0d3a577ac725b6628047c891f9f96ff8c9c211537735b403577efa"
sha256 cellar: :any_skip_relocation, sonoma: "5deee6bf39583020b446b2aa4b5bf228a077faefaddc6d661b84126a01b7037f"
sha256 cellar: :any_skip_relocation, arm64_linux: "5d379327eba2318746591d87221ab14b9373b845d6fec1346517af068989f58c"
sha256 cellar: :any, x86_64_linux: "8cbfce4fd2342c7caac36823126dbdaf2ddda34b049b649c10b60ef5346c298f"
end

depends_on "go" => :build

def install
# get gittea sdk version
sdk = Utils.safe_popen_read("go", "list", "-f", "{{.Version}}", "-m", "code.gitea.io/sdk/gitea").to_s
sdk = Utils.safe_popen_read("go", "list", "-f", "{{.Version}}", "-m", "gitea.dev/sdk").to_s

ldflags = %W[
-s -w
-X code.gitea.io/tea/modules/version.Version=#{version}
-X code.gitea.io/tea/modules/version.Tags=#{tap.user}
-X code.gitea.io/tea/modules/version.SDK=#{sdk}
-X gitea.dev/tea/modules/version.Version=#{version}
-X gitea.dev/tea/modules/version.SDK=#{sdk}
]

system "go", "build", *std_go_args(ldflags:)
Expand Down
Loading