From 46b21aa6a15f20520204f40c8d67c7ee8b3a5029 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Mon, 6 Jan 2025 09:38:13 -0800 Subject: [PATCH 1/2] stencil: switch to rgst-io/stencil and upgrade to v2 Following https://github.com/orgs/Homebrew/discussions/5587, I'm updating the `stencil` formula to point to https://github.com/rgst-io/stencil. Upstream now points to this fork as its successor: https://github.com/getoutreach/stencil#stencil. --- Formula/s/stencil.rb | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Formula/s/stencil.rb b/Formula/s/stencil.rb index 492ca3b485339..bdc20c8368556 100644 --- a/Formula/s/stencil.rb +++ b/Formula/s/stencil.rb @@ -1,10 +1,10 @@ class Stencil < Formula - desc "Smart templating engine for service development" - homepage "https://engineering.outreach.io/stencil/" - url "https://github.com/getoutreach/stencil/archive/refs/tags/v1.40.0.tar.gz" - sha256 "4d7ae67613a5dc6e710f551a528fa136ecdcad7bb758d47d542f0e8b5692b7cb" + desc "Modern living-template engine for evolving repositories" + homepage "https://stencil.rgst.io" + url "https://github.com/rgst-io/stencil/archive/refs/tags/v2.0.1.tar.gz" + sha256 "3a281bca9d895e8b1945e441f3671dacdbc8651bb02685e52019ac0333b0f374" license "Apache-2.0" - head "https://github.com/getoutreach/stencil.git", branch: "main" + head "https://github.com/rgst-io/stencil.git", branch: "main" bottle do sha256 cellar: :any_skip_relocation, arm64_sequoia: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb" @@ -18,8 +18,13 @@ class Stencil < Formula depends_on "go" => :build def install - system "go", "build", *std_go_args(ldflags: "-s -w -X github.com/getoutreach/gobox/pkg/app.Version=v#{version} -X github.com/getoutreach/gobox/pkg/updater/Disabled=true"), - "./cmd/stencil" + ldflags = %W[ + -s -w + -X go.rgst.io/stencil/v2/internal/version.version=#{version} + -X go.rgst.io/stencil/v2/internal/version.builtBy=homebrew + ] + + system "go", "build", *std_go_args(ldflags:), "./cmd/stencil" end test do From 00edbd3450f41be7c57dd5b3a6af56ba5eff6ca9 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:34:31 +0000 Subject: [PATCH 2/2] stencil: update 2.0.1 bottle. --- Formula/s/stencil.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/s/stencil.rb b/Formula/s/stencil.rb index bdc20c8368556..97a79f60a4f0a 100644 --- a/Formula/s/stencil.rb +++ b/Formula/s/stencil.rb @@ -7,12 +7,12 @@ class Stencil < Formula head "https://github.com/rgst-io/stencil.git", branch: "main" bottle do - sha256 cellar: :any_skip_relocation, arm64_sequoia: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb" - sha256 cellar: :any_skip_relocation, arm64_ventura: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb" - sha256 cellar: :any_skip_relocation, sonoma: "60ab1ba8e76fa5ba290df0dd525c9440c0089121d634ee537480911e736d6c4a" - sha256 cellar: :any_skip_relocation, ventura: "60ab1ba8e76fa5ba290df0dd525c9440c0089121d634ee537480911e736d6c4a" - sha256 cellar: :any_skip_relocation, x86_64_linux: "0c87dea0908875edc52e6bb3d2f7a65582e20162180c48f927050d2572d794f9" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "7aafaa0c5f36fd0e520f53dc690e1ad9dec81ac482096f1959451e4008632feb" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "a3c16040bfad1cde26531373eae1f172c7685b218919ac76c923fc4c26a15b8f" + sha256 cellar: :any_skip_relocation, arm64_ventura: "18620d3518406d2ba2663f63f0b59e6c0a1eff790a05f8b39f48bc08cb4354e8" + sha256 cellar: :any_skip_relocation, sonoma: "c7f9e6b901190997497e7d9166687f06906946c5b9ef1465eb454ef8f06b08b6" + sha256 cellar: :any_skip_relocation, ventura: "8bf00aeac4a32ebd441b88cf7d706612cffd2ea778f1f6b933bba12b786e8673" + sha256 cellar: :any_skip_relocation, x86_64_linux: "c0e47e164119b7b6392a97d14b666b906fca96cc4f9f6d6c9cc5e40a6584053a" end depends_on "go" => :build