Skip to content

Commit 68479c6

Browse files
committed
static: use determinisitc zip
1 parent d0252e5 commit 68479c6

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

.github/workflows/assets.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ jobs:
99
uses: actions/setup-node@v4
1010
with:
1111
node-version-file: internal/static/.nvmrc
12+
- uses: actions/setup-go@v5
1213
- run: npm install
1314
working-directory: internal/static
1415
- run: npm run build
1516
working-directory: internal/static
16-
- run: ./internal/static/scripts/diff.sh
17+
- name: Check assets are up to date
18+
run: go generate && git diff --exit-code
19+
working-directory: internal/static

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ require (
1010
)
1111

1212
require (
13+
github.com/gobwas/glob v0.2.3 // indirect
14+
github.com/spf13/pflag v1.0.6 // indirect
15+
github.com/timo-reymann/deterministic-zip v0.0.0-20250313142458-97cfdf725a80 // indirect
1316
golang.org/x/sys v0.26.0 // indirect
1417
golang.org/x/tools v0.26.0 // indirect
1518
)
19+
20+
tool github.com/timo-reymann/deterministic-zip

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
2+
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
13
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
24
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
35
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
46
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
7+
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
8+
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
9+
github.com/timo-reymann/deterministic-zip v0.0.0-20250313142458-97cfdf725a80 h1:k/Pt1xQRdoNf7GQTC65h6gIMX/F8K/gc+NrTeopcrl8=
10+
github.com/timo-reymann/deterministic-zip v0.0.0-20250313142458-97cfdf725a80/go.mod h1:wO52XptWj/POkN6yZz1uqxkDsqjf9NVbbSj5xCk9W0U=
511
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
612
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
713
golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ=

internal/static/dist.zip

-1.18 MB
Binary file not shown.

internal/static/gen.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package static
2+
3+
//go:generate go tool deterministic-zip -v -r dist.zip dist

0 commit comments

Comments
 (0)