Skip to content

Commit

Permalink
Merge pull request #175969 from Homebrew/bump-treefmt-2.0.1
Browse files Browse the repository at this point in the history
treefmt 2.0.1
  • Loading branch information
BrewTestBot authored Jun 29, 2024
2 parents 3b96bfc + 3e6f1d1 commit b9b6433
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2459,6 +2459,7 @@ trash-cli
travis
tree
tree-sitter
treefmt
treefrog
triangle
trino
Expand Down
30 changes: 15 additions & 15 deletions Formula/t/treefmt.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
class Treefmt < Formula
desc "One CLI to format the code tree"
homepage "https://github.com/numtide/treefmt"
url "https://github.com/numtide/treefmt/archive/refs/tags/v0.6.1.tar.gz"
sha256 "5bb67936c5e1dfdb0f260e0f1795e1624697e266c6c1b9e47914df4aa17c5107"
url "https://github.com/numtide/treefmt/archive/refs/tags/v2.0.1.tar.gz"
sha256 "2b0e8d1ec0bcf8cefbdfb41c98fc325d274e35a81eca2e3eddcb2c0d76ca2b06"
license "MIT"

head "https://github.com/numtide/treefmt.git", branch: "master"
head "https://github.com/numtide/treefmt.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "bba21b0bdd6ae7fd7569524b658681208c89672cb0eb92629c758f21e488e16c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "ded3e211ab31c99263044c87cab977a4b614834acf31c14e699918b6c8bad104"
sha256 cellar: :any_skip_relocation, arm64_monterey: "44ae0868f85b77fb10d3cba220448f6e1cf8e5b8e877cb841028b39aad203f4e"
sha256 cellar: :any_skip_relocation, sonoma: "80c344cc850282f3a0dfb58b01900069b94e07c9a6495842caca856dc2a183bc"
sha256 cellar: :any_skip_relocation, ventura: "64e5fd37315933d10520ebe86a8c30aa721338c62a2f1eaa924f28f5b885fc66"
sha256 cellar: :any_skip_relocation, monterey: "0896efaa39e5d6f9ec65076c930427de27b0ed3b7daf8178eb3380a2c0306ddc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "00f0145abdd2b5c97fae57564e6f3db8349c712f6f935f33e3d941d27e1bf124"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4aa363f498de85133ba7f72de6d224a2fb0c71c2973d7e5c332a04d24dab5504"
sha256 cellar: :any_skip_relocation, arm64_ventura: "6a6c29b801cfaa91308b42840ad45c655a6cd9017c24e412b373dbbcd0013605"
sha256 cellar: :any_skip_relocation, arm64_monterey: "f22483187b118d620cb0dacae5b3c9794327ef585c55740f6626bf69c43df09e"
sha256 cellar: :any_skip_relocation, sonoma: "c8cc08f258a0dce085495e14861a0a0cbf65098ab42339d4282a22f3b8f1e5da"
sha256 cellar: :any_skip_relocation, ventura: "530692b89732834e3cafc4ad418be72ec854c8034e8f076a814da1d69dad6a6f"
sha256 cellar: :any_skip_relocation, monterey: "0ab26d66f6f4cac8fac43374304888ceef1099d5757986576ade6c3264c47d1f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d532b19c2b40870e1a7af7997989e14ee5368a9a0e4921f59ef15ed025ab5cbc"
end

depends_on "rust" => :build
depends_on "go" => :build

def install
system "cargo", "install", *std_cargo_args
ldflags = "-s -w -X git.numtide.com/numtide/treefmt/build.Version=#{version}"
system "go", "build", *std_go_args(ldflags:)
end

test do
# Test that treefmt responds as expected when run without treefmt.toml config
assert_match "treefmt.toml could not be found", shell_output("#{bin}/treefmt 2>&1", 1)
assert_match "error: could not find treefmt.toml", shell_output("#{bin}/treefmt 2>&1", 1)
assert_match version.to_s, shell_output("#{bin}/treefmt --version")
end
end

0 comments on commit b9b6433

Please sign in to comment.