Skip to content

Commit e21042e

Browse files
authored
Merge pull request #254801 from branchvincent/prek
prek: add build metadata
2 parents 146fffc + e8a538c commit e21042e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Formula/p/prek.rb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ class Prek < Formula
77
head "https://github.com/j178/prek.git", branch: "master"
88

99
bottle do
10-
sha256 cellar: :any_skip_relocation, arm64_tahoe: "4d3d15a80d269cdb93a30e65e06ffc20b25e3c7fa697d0f6b2eb88b57895bab0"
11-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "63638e6575648da6d76a8e5c5a5dfb91faba6baff9735fc53a26bbcb199421ca"
12-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8fd4e205963d6bdccac20546526692465d5f244c3656bac3c4d26f9b980bcc73"
13-
sha256 cellar: :any_skip_relocation, sonoma: "9a153bdab12874b689edd4ee7ef8aae562c1aa9c3914f4c4c045e997991dc6e9"
14-
sha256 cellar: :any_skip_relocation, arm64_linux: "0d72178b9841317c1a9b19a3e145f83d4f977b8647a89a210e04543c3c789e50"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "129c045f7543216f3b0faeadf48f266e8b61b2ff969ebbd5f6073cccd90181e7"
10+
rebuild 1
11+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "2d034900cc159d91b2d767c5387a8b7ed527905062fe4fa64268fa696a7541e1"
12+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "4233b505dc9367a1fb2dc402981183a4548bd3ef44e25c00731fbfd719945f1c"
13+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "eb6950da24e9016af6d03fb4a674f8b78f96cdf6bad5cdc192c27c77855647ee"
14+
sha256 cellar: :any_skip_relocation, sonoma: "e22a39beb79c4ebb6dd16e7a55e1c1b8caba363136ca55566d31e6c26d709db3"
15+
sha256 cellar: :any_skip_relocation, arm64_linux: "27b9dc1aee4086fcbdebf5c1369d947c63a664c0108d9b0def77c1cb1446aab0"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "ed498e27bf88d222ef9888f59da979dcfca04ec4f7d77d35a779e50378dbf770"
1617
end
1718

1819
depends_on "rust" => :build
1920

2021
def install
22+
ENV["PREK_COMMIT_HASH"] = ENV["PREK_COMMIT_SHORT_HASH"] = tap.user
23+
ENV["PREK_COMMIT_DATE"] = time.strftime("%F")
2124
system "cargo", "install", *std_cargo_args
2225
generate_completions_from_executable(bin/"prek", shell_parameter_format: :clap)
2326
end

0 commit comments

Comments
 (0)