Skip to content

Commit 3aa6142

Browse files
author
Stanislav (Stas) Katkov
committed
small workaround to inject ruby code into brew definition
1 parent 15de909 commit 3aa6142

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ brews:
8686
repository:
8787
owner: skatkov
8888
name: homebrew-tap
89+
# This is a small workaround to inject ruby code into brew definition.
8990
caveats: |
90-
def caveats
91+
EOS
9192
return unless OS.linux?
9293
9394
session_type = ENV['XDG_SESSION_TYPE']
@@ -121,4 +122,4 @@ brews:
121122
end
122123
123124
message
124-
end
125+
<<~EOS

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ require (
1515
github.com/charmbracelet/x/editor v0.1.0
1616
github.com/client9/csstool v0.2.2
1717
github.com/go-xmlfmt/xmlfmt v1.1.3
18-
github.com/goccy/go-yaml v1.18.0
1918
github.com/google/uuid v1.6.0
2019
github.com/hannes-sistemica/toon v0.0.0-20251027210156-1425a7c03d9a
2120
github.com/jacoelho/banking v1.8.1
@@ -29,6 +28,7 @@ require (
2928
github.com/twpayne/go-jsonstruct/v3 v3.3.0
3029
github.com/vektah/gqlparser/v2 v2.5.31
3130
github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
31+
gopkg.in/yaml.v3 v3.0.1
3232
mvdan.cc/xurls/v2 v2.6.0
3333
)
3434

@@ -92,5 +92,4 @@ require (
9292
golang.org/x/term v0.37.0 // indirect
9393
golang.org/x/text v0.31.0 // indirect
9494
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
95-
gopkg.in/yaml.v3 v3.0.1 // indirect
9695
)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4
106106
github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
107107
github.com/go-xmlfmt/xmlfmt v1.1.3 h1:t8Ey3Uy7jDSEisW2K3somuMKIpzktkWptA0iFCnRUWY=
108108
github.com/go-xmlfmt/xmlfmt v1.1.3/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM=
109-
github.com/goccy/go-yaml v1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw=
110-
github.com/goccy/go-yaml v1.18.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
111109
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
112110
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
113111
github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8=

0 commit comments

Comments
 (0)