Skip to content

Commit 0037616

Browse files
committed
[devbox] update go to 1.25.0 and disable CGO to workaround clang linker error
1 parent 2e92837 commit 0037616

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

devbox.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@
88
},
99
"env": {
1010
"GOENV": "off",
11-
"PATH": "$PWD/dist/tools:$PATH:$PWD/dist"
11+
"PATH": "$PWD/dist/tools:$PATH:$PWD/dist",
12+
// Disabling CGO is a workaround for a clang linker error in macos
13+
// This should be okay, because Devbox doesn't require CGO
14+
// https://github.com/NixOS/nixpkgs/issues/433688#issuecomment-3231557942
15+
"CGO_ENABLED": "0",
1216
},
1317
"shell": {
1418
"init_hook": [
1519
// Remove Go environment variables that might've been inherited from the
1620
// user's environment and could affect the build.
1721
"test -z $FISH_VERSION && \\",
18-
"unset CGO_ENABLED GO111MODULE GOARCH GOFLAGS GOMOD GOOS GOROOT GOTOOLCHAIN GOWORK || \\",
19-
"set --erase CGO_ENABLED GO111MODULE GOARCH GOFLAGS GOMOD GOOS GOROOT GOTOOLCHAIN GOWORK",
22+
"unset GO111MODULE GOARCH GOFLAGS GOMOD GOOS GOROOT GOTOOLCHAIN GOWORK || \\",
23+
"set --erase GO111MODULE GOARCH GOFLAGS GOMOD GOOS GOROOT GOTOOLCHAIN GOWORK",
2024
"GOBIN=$PWD/dist/tools go install tool"
2125
],
2226
"scripts": {

devbox.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,50 +126,50 @@
126126
"resolved": "github:NixOS/nixpkgs/372d9eeeafa5b15913201e2b92e8e539ac7c64d1?lastModified=1754990257&narHash=sha256-eEq2wlYNF2t89PsNyEv5Sz4lSxdukZCj4SdhZBVAGpI%3D"
127127
},
128128
"go@latest": {
129-
"last_modified": "2025-07-28T17:09:23Z",
130-
"resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#go",
129+
"last_modified": "2025-09-18T16:33:27Z",
130+
"resolved": "github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#go",
131131
"source": "devbox-search",
132-
"version": "1.24.5",
132+
"version": "1.25.0",
133133
"systems": {
134134
"aarch64-darwin": {
135135
"outputs": [
136136
{
137137
"name": "out",
138-
"path": "/nix/store/kw1vd98s15vj700m3gx2x2xca2z477i3-go-1.24.5",
138+
"path": "/nix/store/cr196bvbbai01r0w11p1inkzkdrqdx6y-go-1.25.0",
139139
"default": true
140140
}
141141
],
142-
"store_path": "/nix/store/kw1vd98s15vj700m3gx2x2xca2z477i3-go-1.24.5"
142+
"store_path": "/nix/store/cr196bvbbai01r0w11p1inkzkdrqdx6y-go-1.25.0"
143143
},
144144
"aarch64-linux": {
145145
"outputs": [
146146
{
147147
"name": "out",
148-
"path": "/nix/store/5bzlaj0c4mqw9p0zrcx5g9vz16vd45dl-go-1.24.5",
148+
"path": "/nix/store/yhcdwwikp86p2cpq0qr7di91ji63460s-go-1.25.0",
149149
"default": true
150150
}
151151
],
152-
"store_path": "/nix/store/5bzlaj0c4mqw9p0zrcx5g9vz16vd45dl-go-1.24.5"
152+
"store_path": "/nix/store/yhcdwwikp86p2cpq0qr7di91ji63460s-go-1.25.0"
153153
},
154154
"x86_64-darwin": {
155155
"outputs": [
156156
{
157157
"name": "out",
158-
"path": "/nix/store/b72n20ixzl5ja9vciwahkr30bhmsn5jc-go-1.24.5",
158+
"path": "/nix/store/hz7dfw13v8iff4vf6vbnqnlnd7wh7j5x-go-1.25.0",
159159
"default": true
160160
}
161161
],
162-
"store_path": "/nix/store/b72n20ixzl5ja9vciwahkr30bhmsn5jc-go-1.24.5"
162+
"store_path": "/nix/store/hz7dfw13v8iff4vf6vbnqnlnd7wh7j5x-go-1.25.0"
163163
},
164164
"x86_64-linux": {
165165
"outputs": [
166166
{
167167
"name": "out",
168-
"path": "/nix/store/y4awwzp30ka130wmjrpaqjmjdf9p010w-go-1.24.5",
168+
"path": "/nix/store/3fd683jfggglpshxprz9mi5sz8wd3c9p-go-1.25.0",
169169
"default": true
170170
}
171171
],
172-
"store_path": "/nix/store/y4awwzp30ka130wmjrpaqjmjdf9p010w-go-1.24.5"
172+
"store_path": "/nix/store/3fd683jfggglpshxprz9mi5sz8wd3c9p-go-1.25.0"
173173
}
174174
}
175175
}

0 commit comments

Comments
 (0)