Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kn 1.16.0 #195263

Merged
merged 2 commits into from
Oct 23, 2024
Merged

kn 1.16.0 #195263

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
26 changes: 12 additions & 14 deletions Formula/k/kn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ class Kn < Formula
desc "Command-line interface for managing Knative Serving and Eventing resources"
homepage "https://github.com/knative/client"
url "https://github.com/knative/client.git",
tag: "knative-v1.15.0",
revision: "59dd72a2407e6ce6d12e9df7a5bf4e87941a550e"
tag: "knative-v1.16.0",
revision: "b3b6b8603082732a6ca69b70ebf5d9d4ed48d804"
license "Apache-2.0"
head "https://github.com/knative/client.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c42b2ee3fa22e70e49de0ea5a67fa55b600f77e7a30a6ab5a4590d7e063b5224"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f214605c37805783058d0e347cba6118e33885c807d343af05cf4fdb09984cae"
sha256 cellar: :any_skip_relocation, arm64_ventura: "f214605c37805783058d0e347cba6118e33885c807d343af05cf4fdb09984cae"
sha256 cellar: :any_skip_relocation, arm64_monterey: "f214605c37805783058d0e347cba6118e33885c807d343af05cf4fdb09984cae"
sha256 cellar: :any_skip_relocation, sonoma: "732bf96fdc66572095563d4e4b1a7d62fccb294d34c5af84fd8dc0a89363a406"
sha256 cellar: :any_skip_relocation, ventura: "732bf96fdc66572095563d4e4b1a7d62fccb294d34c5af84fd8dc0a89363a406"
sha256 cellar: :any_skip_relocation, monterey: "732bf96fdc66572095563d4e4b1a7d62fccb294d34c5af84fd8dc0a89363a406"
sha256 cellar: :any_skip_relocation, x86_64_linux: "daab235040f375a78e92474dfa2cee922e8f642afd1d5f8c8fbda5c0b8e5aeb7"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "bcebd0e10b9d2ef2ded66dfe973305d72f35c7f1bc72cf5bf4a609f79fc52ea0"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "bcebd0e10b9d2ef2ded66dfe973305d72f35c7f1bc72cf5bf4a609f79fc52ea0"
sha256 cellar: :any_skip_relocation, arm64_ventura: "bcebd0e10b9d2ef2ded66dfe973305d72f35c7f1bc72cf5bf4a609f79fc52ea0"
sha256 cellar: :any_skip_relocation, sonoma: "06725a6ea4379f310651ac82c5c971f80826d2f23e29724e12d70a92b840a338"
sha256 cellar: :any_skip_relocation, ventura: "06725a6ea4379f310651ac82c5c971f80826d2f23e29724e12d70a92b840a338"
sha256 cellar: :any_skip_relocation, x86_64_linux: "173449fa365517d5867704d0db1f62722cbb1ab588e41fb19d5f010255413b85"
end

depends_on "go" => :build
Expand All @@ -24,12 +22,12 @@ def install
ENV["CGO_ENABLED"] = "0"

ldflags = %W[
-X knative.dev/client/pkg/kn/commands/version.Version=v#{version}
-X knative.dev/client/pkg/kn/commands/version.GitRevision=#{Utils.git_head(length: 8)}
-X knative.dev/client/pkg/kn/commands/version.BuildDate=#{time.iso8601}
-X knative.dev/client/pkg/commands/version.Version=v#{version}
-X knative.dev/client/pkg/commands/version.GitRevision=#{Utils.git_head(length: 8)}
-X knative.dev/client/pkg/commands/version.BuildDate=#{time.iso8601}
]

system "go", "build", "-mod=vendor", *std_go_args(ldflags:), "./cmd/..."
system "go", "build", *std_go_args(ldflags:), "./cmd/..."

generate_completions_from_executable(bin/"kn", "completion", shells: [:bash, :zsh])
end
Expand Down
Loading