Skip to content

Commit 44fd1f8

Browse files
authored
Merge pull request #203360 from jaredallard/stencil-v2
stencil: switch to rgst-io/stencil and upgrade to v2
2 parents 86132bb + 00edbd3 commit 44fd1f8

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

Formula/s/stencil.rb

+18-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
class Stencil < Formula
2-
desc "Smart templating engine for service development"
3-
homepage "https://engineering.outreach.io/stencil/"
4-
url "https://github.com/getoutreach/stencil/archive/refs/tags/v1.40.0.tar.gz"
5-
sha256 "4d7ae67613a5dc6e710f551a528fa136ecdcad7bb758d47d542f0e8b5692b7cb"
2+
desc "Modern living-template engine for evolving repositories"
3+
homepage "https://stencil.rgst.io"
4+
url "https://github.com/rgst-io/stencil/archive/refs/tags/v2.0.1.tar.gz"
5+
sha256 "3a281bca9d895e8b1945e441f3671dacdbc8651bb02685e52019ac0333b0f374"
66
license "Apache-2.0"
7-
head "https://github.com/getoutreach/stencil.git", branch: "main"
7+
head "https://github.com/rgst-io/stencil.git", branch: "main"
88

99
bottle do
10-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb"
11-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb"
12-
sha256 cellar: :any_skip_relocation, arm64_ventura: "f8dc046cc95bb71c79805b47df3a912787bcbfe344e9b843120a709ecf55aafb"
13-
sha256 cellar: :any_skip_relocation, sonoma: "60ab1ba8e76fa5ba290df0dd525c9440c0089121d634ee537480911e736d6c4a"
14-
sha256 cellar: :any_skip_relocation, ventura: "60ab1ba8e76fa5ba290df0dd525c9440c0089121d634ee537480911e736d6c4a"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "0c87dea0908875edc52e6bb3d2f7a65582e20162180c48f927050d2572d794f9"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "7aafaa0c5f36fd0e520f53dc690e1ad9dec81ac482096f1959451e4008632feb"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a3c16040bfad1cde26531373eae1f172c7685b218919ac76c923fc4c26a15b8f"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "18620d3518406d2ba2663f63f0b59e6c0a1eff790a05f8b39f48bc08cb4354e8"
13+
sha256 cellar: :any_skip_relocation, sonoma: "c7f9e6b901190997497e7d9166687f06906946c5b9ef1465eb454ef8f06b08b6"
14+
sha256 cellar: :any_skip_relocation, ventura: "8bf00aeac4a32ebd441b88cf7d706612cffd2ea778f1f6b933bba12b786e8673"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "c0e47e164119b7b6392a97d14b666b906fca96cc4f9f6d6c9cc5e40a6584053a"
1616
end
1717

1818
depends_on "go" => :build
1919

2020
def install
21-
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"),
22-
"./cmd/stencil"
21+
ldflags = %W[
22+
-s -w
23+
-X go.rgst.io/stencil/v2/internal/version.version=#{version}
24+
-X go.rgst.io/stencil/v2/internal/version.builtBy=homebrew
25+
]
26+
27+
system "go", "build", *std_go_args(ldflags:), "./cmd/stencil"
2328
end
2429

2530
test do

0 commit comments

Comments
 (0)