chore(go): upgrade to go 1.25 and enable `GOEXPERIMENT=greenteagc`

Andrey Nering created

Change summary

.github/workflows/release.yml | 1 +
.goreleaser.yml               | 1 +
Taskfile.yaml                 | 8 ++++++++
go.mod                        | 2 +-
4 files changed, 11 insertions(+), 1 deletion(-)

Detailed changes

.github/workflows/release.yml 🔗

@@ -32,3 +32,4 @@ jobs:
       macos_notary_issuer_id: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
       macos_notary_key_id: ${{ secrets.MACOS_NOTARY_KEY_ID }}
       macos_notary_key: ${{ secrets.MACOS_NOTARY_KEY }}
+      go_version: "1.25"

.goreleaser.yml 🔗

@@ -43,6 +43,7 @@ before:
 builds:
   - env:
       - CGO_ENABLED=0
+      - GOEXPERIMENT=greenteagc
     goos:
       - linux
       - darwin

Taskfile.yaml 🔗

@@ -2,6 +2,9 @@
 
 version: "3"
 
+env:
+  GOEXPERIMENT: greenteagc
+
 tasks:
   lint:
     desc: Run base linters
@@ -30,6 +33,11 @@ tasks:
     cmds:
       - go run .
 
+  install:
+    desc: Install the application
+    cmds:
+      - go install -v .
+
   profile:cpu:
     desc: 10s CPU profile
     cmds:

go.mod 🔗

@@ -1,6 +1,6 @@
 module github.com/charmbracelet/crush
 
-go 1.24.3
+go 1.25.0
 
 require (
 	github.com/JohannesKaufmann/html-to-markdown v1.6.0