From db5550bc636147791125e0fd3004056c596422bb Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Thu, 27 Feb 2025 13:11:29 -0500 Subject: [PATCH] keep-sorted: set version in build info --- Formula/k/keep-sorted.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Formula/k/keep-sorted.rb b/Formula/k/keep-sorted.rb index 97d9fa59ca776..ed2db464bfec3 100644 --- a/Formula/k/keep-sorted.rb +++ b/Formula/k/keep-sorted.rb @@ -1,8 +1,9 @@ class KeepSorted < Formula desc "Language-agnostic formatter that sorts selected lines" homepage "https://github.com/google/keep-sorted" - url "https://github.com/google/keep-sorted/archive/refs/tags/v0.6.0.tar.gz" - sha256 "28a8290da4908999712896ed0a94a0e26f290f22b565f290a0782220379a033c" + url "https://github.com/google/keep-sorted.git", + tag: "v0.6.0", + revision: "df93c2722b6126556183749880f16a9beb664bb4" license "Apache-2.0" bottle do @@ -21,6 +22,7 @@ def install end test do + assert_match version.to_s, shell_output("#{bin}/keep-sorted --version") test_file = testpath + "test_input" test_file.write <<~EOS line will not be touched.