Skip to content

Commit 1dc7971

Browse files
authored
Merge pull request #250148 from Homebrew/bump-dotenv-linter-4.0.0
dotenv-linter 4.0.0
2 parents ba91186 + f40f64e commit 1dc7971

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

Formula/d/dotenv-linter.rb

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,41 @@
11
class DotenvLinter < Formula
22
desc "Lightning-fast linter for .env files written in Rust"
33
homepage "https://dotenv-linter.github.io"
4-
url "https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v3.3.0.tar.gz"
5-
sha256 "ffcd2f0d5bb40a19ea747ad7786fea796a7454f51e6da8f37fec572da8ae3c5f"
4+
url "https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v4.0.0.tar.gz"
5+
sha256 "c10f63e84a877b630986a59680df20ee3f49ae3f89daa8d7e65f427d31b13a32"
66
license "MIT"
77
head "https://github.com/dotenv-linter/dotenv-linter.git", branch: "master"
88

99
bottle do
10-
rebuild 1
11-
sha256 cellar: :any_skip_relocation, arm64_tahoe: "d96d5471e6c6db4a9dae33f2cb5f6da527c9badde10abff122bf1be14ae5ea3b"
12-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e74128c4d30c2a6528fc6a02f79e6e33ccd6a742110726025f02b71ea19e46df"
13-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "981a11e38772c78552307b2c72983ca365ca9f40778a7cfce3f313d202d9ccf3"
14-
sha256 cellar: :any_skip_relocation, arm64_ventura: "061184afd4a55c9b9a1095ab0adc9306fea34473b79908e31d63b3322952b4fa"
15-
sha256 cellar: :any_skip_relocation, arm64_monterey: "2758e27ba06e8c9593de63f69e0de848137ce7d0f176a6ddc61e5cd3584d5aff"
16-
sha256 cellar: :any_skip_relocation, arm64_big_sur: "ce2bfeff94f6b0d50d14e690054038172d7ad26800f4eb9031f88eb9b390c9e9"
17-
sha256 cellar: :any_skip_relocation, sonoma: "fdbc5c9441782795e7e1ec27befc257875e880b48111dc111d545933084b18c1"
18-
sha256 cellar: :any_skip_relocation, ventura: "a5ee9c2f5b214a98f6f132647cca658fbfe71e6fac928323cbc75da3d28d92ce"
19-
sha256 cellar: :any_skip_relocation, monterey: "5d16c28fec308fcc777002e6a6c58ae798ac141898c3b8c68242dbab9b9160b5"
20-
sha256 cellar: :any_skip_relocation, big_sur: "a575348fa033223614c4dac49591ad81129238c3d8675d3e7a26fed6989e446e"
21-
sha256 cellar: :any_skip_relocation, arm64_linux: "c1d24d5ee409f3bdca9f8b112f29be3bd7c6212ffbac08f516b5c2f0d2ec5461"
22-
sha256 cellar: :any_skip_relocation, x86_64_linux: "374ba41dd72196bdcdf510f52e42a74d0ee35eb96c4ba47bbb88cad7e298d023"
10+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "23826a36202a165deaa312c7b0029d0c02eef0d21b49c56d20f2deb23cf38de0"
11+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c18328c0319bad89891c989253a6ee818fe235f9d439bea847a52b936f50521a"
12+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "e9001d81807e8c5e9f7f0284a7ff516d3d72f6f182adf4a5c7a8b82e6f35d89f"
13+
sha256 cellar: :any_skip_relocation, sonoma: "4f47ec451241a91ccdccb741cd61576f403962637841fcd8b49b8f292ce9e301"
14+
sha256 cellar: :any_skip_relocation, arm64_linux: "a630789bddee63f8c975359e0b77394b6cca50e95abc9ccc3d4988984bdf9030"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "cd0da61986447dbdadec3a8634cf19d5eb12d1ce4bb1c61acf53f67c0187b126"
2316
end
2417

2518
depends_on "rust" => :build
2619

2720
def install
28-
system "cargo", "install", *std_cargo_args
21+
system "cargo", "install", *std_cargo_args(path: "dotenv-cli")
2922
end
3023

3124
test do
32-
checks = shell_output("#{bin}/dotenv-linter list").split("\n")
33-
assert_includes checks, "DuplicatedKey"
34-
assert_includes checks, "UnorderedKey"
35-
assert_includes checks, "LeadingCharacter"
25+
assert_match version.to_s, shell_output("#{bin}/dotenv-linter --version")
3626

3727
(testpath/".env").write <<~EOS
3828
FOO=bar
3929
FOO=bar
4030
BAR=foo
4131
EOS
32+
4233
(testpath/".env.test").write <<~EOS
4334
1FOO=bar
4435
_FOO=bar
4536
EOS
46-
output = shell_output(bin/"dotenv-linter", 1)
37+
38+
output = shell_output("#{bin}/dotenv-linter check .env .env.test", 1)
4739
assert_match(/\.env:2\s+DuplicatedKey/, output)
4840
assert_match(/\.env:3\s+UnorderedKey/, output)
4941
assert_match(/\.env.test:1\s+LeadingCharacter/, output)

0 commit comments

Comments
 (0)