Benign ruby Download

varlock.rb

Homebrew Formula subclass declarationReferences a release download URL path
SHA-25634948007ac4b889c10c54df401c4a919e268d8574582b1479223b44b5e34ca89

Evidence

64-character hexadecimal literal lines 1–47
1
2class Varlock < Formula
3 desc "varlock is a tool to load and validate .env files"
4 homepage "https://varlock.dev"
5 # ! the version number in this file is fetched and used by our install.sh script
6 version "1.25.0"
7
8 on_macos do
9 on_intel do
10 url "https://github.com/dmno-dev/varlock/releases/download/varlock@#{version}/varlock-macos-x64.tar.gz"
11 sha256 "20c0615bf813b9fd546d4b846805d4b27c4175a092ad1d6e728e63c344b01791"
12 end
13
14 on_arm do
15 url "https://github.com/dmno-dev/varlock/releases/download/varlock@#{version}/varlock-macos-arm64.tar.gz"
16 sha256 "7d75d56356537f12f7d52bc5f0a4318936e6d1699df3bc9c733825ad9de00d19"
17 end
18 end
19
20 on_linux do
21 on_intel do
22 url "https://github.com/dmno-dev/varlock/releases/download/varlock@#{version}/varlock-linux-x64.tar.gz"
23 sha256 "46c8bc6bce98878afe70ec3bfe16c8b56cd48a41687ea5418c8ec88844c0d073"
24 end
25
26 on_arm do
27 url "https://github.com/dmno-dev/varlock/releases/download/varlock@#{version}/varlock-linux-arm64.tar.gz"
28 sha256 "900dfc310a8d94023bc74bfe034903fe5580ac69809740e5baf03b96998d9d71"
29 end
30 end
⋯7 lines
38
39 on_linux do
40 libexec.install "varlock-local-encrypt"
41 end
42 end
43
44 test do
45 assert_equal "1.25.0", shell_output("#{bin}/varlock --post-install brew").strip
46 end
47end

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.