Skip to content

Commit 4be11f7

Browse files
authored
[deps] Update go (#2669)
## Summary Fixes #2668 ## How was it tested? ## Community Contribution License All community contributions in this pull request are licensed to the project maintainers under the terms of the [Apache 2 License](https://www.apache.org/licenses/LICENSE-2.0). By creating this pull request, I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the [Community Contribution License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
1 parent 026caab commit 4be11f7

File tree

10 files changed

+106
-71
lines changed

10 files changed

+106
-71
lines changed

.github/workflows/cli-tests.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ jobs:
8383
runs-on: ubuntu-latest
8484
steps:
8585
- uses: actions/checkout@v4
86-
- uses: DeterminateSystems/nix-installer-action@main
86+
- name: Install devbox
87+
uses: jetify-com/[email protected]
88+
with:
89+
enable-cache: true
8790
- name: Build flake
8891
run: |
89-
if ! nix build .; then
92+
if ! devbox run build-flake; then
9093
echo "::warning::If this fails, you probably have to run 'devbox run update-hash'"
9194
exit 1
9295
fi

devbox.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"go mod vendor -o $vendor",
5151
"nix hash path $vendor >vendor-hash"
5252
],
53+
"build-flake": "nix build .",
5354
"tidy": ["go mod tidy", "devbox run update-hash"],
5455
// docker-testscripts runs the testscripts with Docker to exercise
5556
// Linux-specific tests. It invokes the test binary directly, so any extra

devbox.lock

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,174 +2,174 @@
22
"lockfile_version": "1",
33
"packages": {
44
"fd@latest": {
5-
"last_modified": "2025-03-11T17:52:14Z",
6-
"resolved": "github:NixOS/nixpkgs/0d534853a55b5d02a4ababa1d71921ce8f0aee4c#fd",
5+
"last_modified": "2025-07-28T17:09:23Z",
6+
"resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#fd",
77
"source": "devbox-search",
88
"version": "10.2.0",
99
"systems": {
1010
"aarch64-darwin": {
1111
"outputs": [
1212
{
1313
"name": "out",
14-
"path": "/nix/store/40pdazk980kp3h26py4hjyx9rys1g14n-fd-10.2.0",
14+
"path": "/nix/store/40nk6ri500aip6a34x8nnhr9k0ikgl8f-fd-10.2.0",
1515
"default": true
1616
}
1717
],
18-
"store_path": "/nix/store/40pdazk980kp3h26py4hjyx9rys1g14n-fd-10.2.0"
18+
"store_path": "/nix/store/40nk6ri500aip6a34x8nnhr9k0ikgl8f-fd-10.2.0"
1919
},
2020
"aarch64-linux": {
2121
"outputs": [
2222
{
2323
"name": "out",
24-
"path": "/nix/store/76zcwa1d33vciy4gyqvk6jl2n3g1542q-fd-10.2.0",
24+
"path": "/nix/store/f0cm3mr35dxk6ziwcarwmk5psnzklg6k-fd-10.2.0",
2525
"default": true
2626
}
2727
],
28-
"store_path": "/nix/store/76zcwa1d33vciy4gyqvk6jl2n3g1542q-fd-10.2.0"
28+
"store_path": "/nix/store/f0cm3mr35dxk6ziwcarwmk5psnzklg6k-fd-10.2.0"
2929
},
3030
"x86_64-darwin": {
3131
"outputs": [
3232
{
3333
"name": "out",
34-
"path": "/nix/store/ys9qmljs0ag7j040radgg48l6pvjmv9l-fd-10.2.0",
34+
"path": "/nix/store/5vqrgkgb3ishhjrjfvd08401bzj80yhl-fd-10.2.0",
3535
"default": true
3636
}
3737
],
38-
"store_path": "/nix/store/ys9qmljs0ag7j040radgg48l6pvjmv9l-fd-10.2.0"
38+
"store_path": "/nix/store/5vqrgkgb3ishhjrjfvd08401bzj80yhl-fd-10.2.0"
3939
},
4040
"x86_64-linux": {
4141
"outputs": [
4242
{
4343
"name": "out",
44-
"path": "/nix/store/rrdvpl7rym4ia0h7rfz1vmlcvvivj30j-fd-10.2.0",
44+
"path": "/nix/store/d8gs5vih8f1nkck5q8jrndzxzdkpsl01-fd-10.2.0",
4545
"default": true
4646
}
4747
],
48-
"store_path": "/nix/store/rrdvpl7rym4ia0h7rfz1vmlcvvivj30j-fd-10.2.0"
48+
"store_path": "/nix/store/d8gs5vih8f1nkck5q8jrndzxzdkpsl01-fd-10.2.0"
4949
}
5050
}
5151
},
5252
"git@latest": {
53-
"last_modified": "2025-03-11T17:52:14Z",
54-
"resolved": "github:NixOS/nixpkgs/0d534853a55b5d02a4ababa1d71921ce8f0aee4c#git",
53+
"last_modified": "2025-07-28T17:09:23Z",
54+
"resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#git",
5555
"source": "devbox-search",
56-
"version": "2.48.1",
56+
"version": "2.50.1",
5757
"systems": {
5858
"aarch64-darwin": {
5959
"outputs": [
6060
{
6161
"name": "out",
62-
"path": "/nix/store/b3sci30zzzlj3rzj1y89cijnd6zcwapk-git-2.48.1",
62+
"path": "/nix/store/jn9byxgdjndngf0d2by0djg8gcdll7xc-git-2.50.1",
6363
"default": true
6464
},
6565
{
6666
"name": "doc",
67-
"path": "/nix/store/086knqdw7fjgzczp0i6nad95s2v6jbya-git-2.48.1-doc"
67+
"path": "/nix/store/j8djmq64ckbah7bl6jv1y6arrjr0shmv-git-2.50.1-doc"
6868
}
6969
],
70-
"store_path": "/nix/store/b3sci30zzzlj3rzj1y89cijnd6zcwapk-git-2.48.1"
70+
"store_path": "/nix/store/jn9byxgdjndngf0d2by0djg8gcdll7xc-git-2.50.1"
7171
},
7272
"aarch64-linux": {
7373
"outputs": [
7474
{
7575
"name": "out",
76-
"path": "/nix/store/pck1dr5jxrd5b8nmfasbn13z422jhcfm-git-2.48.1",
76+
"path": "/nix/store/h4pvvix6pvnvys9a6y1xj2442r1ajdhl-git-2.50.1",
7777
"default": true
7878
},
7979
{
8080
"name": "debug",
81-
"path": "/nix/store/xqqsvzlilh843rm6knykyng81apapr33-git-2.48.1-debug"
81+
"path": "/nix/store/rpxnrnsn4nbx8wm9d2vrgj0fr5xzz5lg-git-2.50.1-debug"
8282
},
8383
{
8484
"name": "doc",
85-
"path": "/nix/store/485b32ys0s2dvjfisn7405ildmpqvfzk-git-2.48.1-doc"
85+
"path": "/nix/store/q8sicpx16gyzxnp3345a46lj4cz9wd09-git-2.50.1-doc"
8686
}
8787
],
88-
"store_path": "/nix/store/pck1dr5jxrd5b8nmfasbn13z422jhcfm-git-2.48.1"
88+
"store_path": "/nix/store/h4pvvix6pvnvys9a6y1xj2442r1ajdhl-git-2.50.1"
8989
},
9090
"x86_64-darwin": {
9191
"outputs": [
9292
{
9393
"name": "out",
94-
"path": "/nix/store/9qjzgsf9mvdp6sfd7xyzhgrahl2qhhp6-git-2.48.1",
94+
"path": "/nix/store/8d1n8cvi5x1j0v61459lvhqs26vmcqbl-git-2.50.1",
9595
"default": true
9696
},
9797
{
9898
"name": "doc",
99-
"path": "/nix/store/cgv7qa0ix059ma9a0qac0bywfvl3k7k2-git-2.48.1-doc"
99+
"path": "/nix/store/yn9cvbs7jz4dfdb17qralgr0ybi5rmjf-git-2.50.1-doc"
100100
}
101101
],
102-
"store_path": "/nix/store/9qjzgsf9mvdp6sfd7xyzhgrahl2qhhp6-git-2.48.1"
102+
"store_path": "/nix/store/8d1n8cvi5x1j0v61459lvhqs26vmcqbl-git-2.50.1"
103103
},
104104
"x86_64-linux": {
105105
"outputs": [
106106
{
107107
"name": "out",
108-
"path": "/nix/store/lqx2rv26sdndpa2vyy2vxsahj03km69z-git-2.48.1",
108+
"path": "/nix/store/5i8zvall945kypmwgqd0y47f02pldwp4-git-2.50.1",
109109
"default": true
110110
},
111111
{
112112
"name": "doc",
113-
"path": "/nix/store/hjczhs1dm3hzij7mx5c91rkzqvkb89av-git-2.48.1-doc"
113+
"path": "/nix/store/d2lhlzkdziwmijik8nszfwp8srbkskb9-git-2.50.1-doc"
114114
},
115115
{
116116
"name": "debug",
117-
"path": "/nix/store/bk8xndavdnc2qgyvc6hcc8h29lk9jzqb-git-2.48.1-debug"
117+
"path": "/nix/store/l46kpjpcwwp8l7kzzr1s2dlk646r73z2-git-2.50.1-debug"
118118
}
119119
],
120-
"store_path": "/nix/store/lqx2rv26sdndpa2vyy2vxsahj03km69z-git-2.48.1"
120+
"store_path": "/nix/store/5i8zvall945kypmwgqd0y47f02pldwp4-git-2.50.1"
121121
}
122122
}
123123
},
124124
"github:NixOS/nixpkgs/nixpkgs-unstable": {
125-
"last_modified": "2025-04-07T13:23:10Z",
126-
"resolved": "github:NixOS/nixpkgs/b0b4b5f8f621bfe213b8b21694bab52ecfcbf30b?lastModified=1744032190&narHash=sha256-KSlfrncSkcu1YE%2BuuJ%2FPTURsSlThoGkRqiGDVdbiE%2Fk%3D"
125+
"last_modified": "2025-08-12T09:17:37Z",
126+
"resolved": "github:NixOS/nixpkgs/372d9eeeafa5b15913201e2b92e8e539ac7c64d1?lastModified=1754990257&narHash=sha256-eEq2wlYNF2t89PsNyEv5Sz4lSxdukZCj4SdhZBVAGpI%3D"
127127
},
128128
"go@latest": {
129-
"last_modified": "2025-03-11T17:52:14Z",
130-
"resolved": "github:NixOS/nixpkgs/0d534853a55b5d02a4ababa1d71921ce8f0aee4c#go",
129+
"last_modified": "2025-07-28T17:09:23Z",
130+
"resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#go",
131131
"source": "devbox-search",
132-
"version": "1.24.1",
132+
"version": "1.24.5",
133133
"systems": {
134134
"aarch64-darwin": {
135135
"outputs": [
136136
{
137137
"name": "out",
138-
"path": "/nix/store/ja4jxx60lh1qfqfl4z4p2rff56ia1c3c-go-1.24.1",
138+
"path": "/nix/store/kw1vd98s15vj700m3gx2x2xca2z477i3-go-1.24.5",
139139
"default": true
140140
}
141141
],
142-
"store_path": "/nix/store/ja4jxx60lh1qfqfl4z4p2rff56ia1c3c-go-1.24.1"
142+
"store_path": "/nix/store/kw1vd98s15vj700m3gx2x2xca2z477i3-go-1.24.5"
143143
},
144144
"aarch64-linux": {
145145
"outputs": [
146146
{
147147
"name": "out",
148-
"path": "/nix/store/8ply43gnxk1xwichr81mpgbjcd9a1y5w-go-1.24.1",
148+
"path": "/nix/store/5bzlaj0c4mqw9p0zrcx5g9vz16vd45dl-go-1.24.5",
149149
"default": true
150150
}
151151
],
152-
"store_path": "/nix/store/8ply43gnxk1xwichr81mpgbjcd9a1y5w-go-1.24.1"
152+
"store_path": "/nix/store/5bzlaj0c4mqw9p0zrcx5g9vz16vd45dl-go-1.24.5"
153153
},
154154
"x86_64-darwin": {
155155
"outputs": [
156156
{
157157
"name": "out",
158-
"path": "/nix/store/87yxrfx5lh78bdz393i33cr5z23x06q4-go-1.24.1",
158+
"path": "/nix/store/b72n20ixzl5ja9vciwahkr30bhmsn5jc-go-1.24.5",
159159
"default": true
160160
}
161161
],
162-
"store_path": "/nix/store/87yxrfx5lh78bdz393i33cr5z23x06q4-go-1.24.1"
162+
"store_path": "/nix/store/b72n20ixzl5ja9vciwahkr30bhmsn5jc-go-1.24.5"
163163
},
164164
"x86_64-linux": {
165165
"outputs": [
166166
{
167167
"name": "out",
168-
"path": "/nix/store/cfjhl0kn7xc65466pha9fkrvigw3g72n-go-1.24.1",
168+
"path": "/nix/store/y4awwzp30ka130wmjrpaqjmjdf9p010w-go-1.24.5",
169169
"default": true
170170
}
171171
],
172-
"store_path": "/nix/store/cfjhl0kn7xc65466pha9fkrvigw3g72n-go-1.24.1"
172+
"store_path": "/nix/store/y4awwzp30ka130wmjrpaqjmjdf9p010w-go-1.24.5"
173173
}
174174
}
175175
}
Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"packages": [
3-
2+
"packages": ["[email protected]"],
3+
"env": {
4+
"GOPATH": "$HOME/go/",
5+
"PATH": "$PATH:$HOME/go/bin"
6+
},
7+
"shell": {
8+
"init_hook": [
9+
"export \"GOROOT=$(go env GOROOT)\""
410
],
5-
"env": {
6-
"GOPATH": "$HOME/go/",
7-
"PATH": "$PATH:$HOME/go/bin"
8-
},
9-
"shell": {
10-
"init_hook": [
11-
"export \"GOROOT=$(go env GOROOT)\""
12-
],
13-
"scripts": {
14-
"run_test": "go run main.go"
15-
}
11+
"scripts": {
12+
"run_test": "go run main.go"
1613
}
17-
}
14+
}
15+
}

examples/development/go/hello-world/devbox.lock

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,55 @@
11
{
22
"lockfile_version": "1",
33
"packages": {
4-
5-
"last_modified": "2023-05-01T16:53:22Z",
6-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#go_1_19",
7-
"version": "1.19.8",
4+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
5+
"last_modified": "2025-08-12T09:17:37Z",
6+
"resolved": "github:NixOS/nixpkgs/372d9eeeafa5b15913201e2b92e8e539ac7c64d1?lastModified=1754990257&narHash=sha256-eEq2wlYNF2t89PsNyEv5Sz4lSxdukZCj4SdhZBVAGpI%3D"
7+
},
8+
9+
"last_modified": "2025-07-28T17:09:23Z",
10+
"resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#go",
11+
"source": "devbox-search",
12+
"version": "1.24.5",
813
"systems": {
914
"aarch64-darwin": {
10-
"store_path": "/nix/store/7m99ip3616l3z670y83p34r3plwd4iq1-go-1.19.8"
15+
"outputs": [
16+
{
17+
"name": "out",
18+
"path": "/nix/store/kw1vd98s15vj700m3gx2x2xca2z477i3-go-1.24.5",
19+
"default": true
20+
}
21+
],
22+
"store_path": "/nix/store/kw1vd98s15vj700m3gx2x2xca2z477i3-go-1.24.5"
1123
},
1224
"aarch64-linux": {
13-
"store_path": "/nix/store/zpaj1y4iwmkk3ci43ab9k10rr9ilpa3a-go-1.19.8"
25+
"outputs": [
26+
{
27+
"name": "out",
28+
"path": "/nix/store/5bzlaj0c4mqw9p0zrcx5g9vz16vd45dl-go-1.24.5",
29+
"default": true
30+
}
31+
],
32+
"store_path": "/nix/store/5bzlaj0c4mqw9p0zrcx5g9vz16vd45dl-go-1.24.5"
1433
},
1534
"x86_64-darwin": {
16-
"store_path": "/nix/store/m0fkw6wi5m73y78yqmwhd15y0fjfx5vq-go-1.19.8"
35+
"outputs": [
36+
{
37+
"name": "out",
38+
"path": "/nix/store/b72n20ixzl5ja9vciwahkr30bhmsn5jc-go-1.24.5",
39+
"default": true
40+
}
41+
],
42+
"store_path": "/nix/store/b72n20ixzl5ja9vciwahkr30bhmsn5jc-go-1.24.5"
1743
},
1844
"x86_64-linux": {
19-
"store_path": "/nix/store/r0x0agq0vwn0p6z99vkkvn8l8a8idzsb-go-1.19.8"
45+
"outputs": [
46+
{
47+
"name": "out",
48+
"path": "/nix/store/y4awwzp30ka130wmjrpaqjmjdf9p010w-go-1.24.5",
49+
"default": true
50+
}
51+
],
52+
"store_path": "/nix/store/y4awwzp30ka130wmjrpaqjmjdf9p010w-go-1.24.5"
2053
}
2154
}
2255
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module example
22

3-
go 1.19
3+
go 1.24.5

examples/development/go/hello-world/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
func main() {
9-
expected := "go1.19.8"
9+
expected := "go1.24.5"
1010
goVersion := runtime.Version()
1111
fmt.Printf("Go version: %s\n", goVersion)
1212
if goVersion != expected {

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
let
1818
pkgs = nixpkgs.legacyPackages.${system};
1919

20-
lastTag = "0.14.2";
20+
lastTag = "0.15.1";
2121

2222
revision = if (self ? shortRev) then "${self.shortRev}" else "${self.dirtyShortRev or "dirty"}";
2323

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.jetify.com/devbox
22

3-
go 1.24.0
3+
go 1.24.5
44

55
require (
66
al.essio.dev/pkg/shellescape v1.5.1

0 commit comments

Comments
 (0)