Skip to content

Commit aedb836

Browse files
committed
prek: add build metadata
1 parent 654ffca commit aedb836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Formula/p/prek.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class Prek < Formula
1818
depends_on "rust" => :build
1919

2020
def install
21+
ENV["PREK_COMMIT_HASH"] = ENV["PREK_COMMIT_SHORT_HASH"] = tap.user
22+
ENV["PREK_COMMIT_DATE"] = time.strftime("%F")
2123
system "cargo", "install", *std_cargo_args
2224
generate_completions_from_executable(bin/"prek", shell_parameter_format: :clap)
2325
end

0 commit comments

Comments
 (0)