Skip to content

Commit a29b116

Browse files
feat: add an action to make gomod2nix.toml auto update when go.mod/go.sum update (FloatTech#909)
* feat: add an action to make gomod2nix.toml auto update when go.mod/go.sum update * chore: bump deps --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3faabc4 commit a29b116

File tree

2 files changed

+67
-57
lines changed

2 files changed

+67
-57
lines changed

.github/workflows/gomod2nix.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: gomod2nix auto update
2+
on:
3+
push:
4+
paths:
5+
- 'go.mod'
6+
- 'go.sum'
7+
- '.github/workflows/gomod2nix.yml'
8+
jobs:
9+
gomod2nix:
10+
name: gomod2nix update
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up nix
14+
uses: cachix/install-nix-action@v27
15+
with:
16+
nix_path: nixpkgs=channel:nixos-unstable
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@master
20+
with:
21+
go-version: "1.20"
22+
23+
- name: Check out code into the Go module directory
24+
uses: actions/checkout@master
25+
26+
- name: gomod2nix update
27+
run: |
28+
nix run github:nix-community/gomod2nix
29+
- name: Commit back
30+
if: ${{ !github.head_ref }}
31+
continue-on-error: true
32+
run: |
33+
git config --local user.name 'github-actions[bot]'
34+
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
35+
git add --all
36+
git commit -m "chore: bump deps"
37+
- name: Create Pull Request
38+
if: ${{ !github.head_ref }}
39+
continue-on-error: true
40+
uses: peter-evans/create-pull-request@v4

gomod2nix.toml

Lines changed: 27 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ schema = 3
55
version = "v1.1.1"
66
hash = "sha256-hKshA0K92bKuK92mmtM0osVmqLJcSbeobeWSDpQoRCo="
77
[mod."github.com/FloatTech/AnimeAPI"]
8-
version = "v1.7.1-0.20231017135344-aefd1d56e900"
9-
hash = "sha256-YV9VQ7bA8R5g5dcAsbzS6MicVwDgMu08d9GF4uqXH7M="
8+
version = "v1.7.1-0.20240504155718-e1a4844e94a5"
9+
hash = "sha256-GMcUf87emhkjHvoRlMLE0g1wNsmsgGPyLytLGlKq+30="
1010
[mod."github.com/FloatTech/floatbox"]
11-
version = "v0.0.0-20231107124407-e38535efa2a2"
12-
hash = "sha256-B86GBuJAjeFjhAjNbBF6OO6DTH2/fpPkrdQynwX+sxg="
11+
version = "v0.0.0-20240505082030-226ec6713e14"
12+
hash = "sha256-v296D9T1QzFmcHQJNxJvx7sMtK+Jd1TUHXWqZtIvvf4="
1313
[mod."github.com/FloatTech/gg"]
1414
version = "v1.1.3-0.20230226151425-6ea91286ba08"
1515
hash = "sha256-AeMzjMK1ZwFERb5xuNAV5PdHp7rzoT4ZF7kZ6Kj2/0s="
@@ -23,17 +23,17 @@ schema = 3
2323
version = "v1.6.3"
2424
hash = "sha256-zWPByEMi89ms67ubPg0fAPIRxfpBC2IRKc0iNVLqkPU="
2525
[mod."github.com/FloatTech/ttl"]
26-
version = "v0.0.0-20220715042055-15612be72f5b"
27-
hash = "sha256-vVQTn7f2dFPNrLqutWbeHMCpEdNi7uPxUzpphzaYPpM="
26+
version = "v0.0.0-20230307105452-d6f7b2b647d1"
27+
hash = "sha256-BQzWUzoIOLwfZa7WElqaa3EYrcz1Ql6JApgxZIQHBro="
2828
[mod."github.com/FloatTech/zbpctrl"]
29-
version = "v1.6.0"
30-
hash = "sha256-2ZPGFvSgTWcPOo8+p8kmg590HY2b8v/L3674ba+b7+A="
29+
version = "v1.6.1"
30+
hash = "sha256-S5KSLZSUt6s7i6ZfKovlJawXF5NYkenPSNVWk+xtO8o="
3131
[mod."github.com/FloatTech/zbputils"]
32-
version = "v1.7.1-0.20231107124514-083e678fbfe6"
33-
hash = "sha256-Bg3aAI8oDx71kWielITcK5Rg2H47/DQZX+4+dO5AtK4="
32+
version = "v1.7.1"
33+
hash = "sha256-t2z2s0omrfxzDWTTxoOmq2o4ftUuUgdUoygEHXA1Drc="
3434
[mod."github.com/RomiChan/syncx"]
35-
version = "v0.0.0-20221202055724-5f842c53020e"
36-
hash = "sha256-FbmvziRRDEzeXW17IQdyWMWsCVq4fvwKGjbFZqJKAMQ="
35+
version = "v0.0.0-20240418144900-b7402ffdebc7"
36+
hash = "sha256-L1j1vgiwqXpF9pjMoRRlrQUHzoULisw/01plaEAwxs4="
3737
[mod."github.com/RomiChan/websocket"]
3838
version = "v1.4.3-0.20220227141055-9b2c6168c9c5"
3939
hash = "sha256-Adx+gvqB+CCoUXx7ebIaBDjVkav+wS5qZPmaqcApBWA="
@@ -74,11 +74,11 @@ schema = 3
7474
version = "v1.7.0"
7575
hash = "sha256-vTAsBBYe2ISzb2Nba5E96unodZSkhMcqo6hbwR01nz8="
7676
[mod."github.com/fumiama/go-registry"]
77-
version = "v0.2.6"
78-
hash = "sha256-DgkdYYWsCs/bBrIiCHK4tPInv8pTy5/AqwHmI5UPTo8="
77+
version = "v0.2.7"
78+
hash = "sha256-Rjl+z0Hlp2LMi8+pnFe5HrxctyHMi7UPiK33g/OgLdA="
7979
[mod."github.com/fumiama/go-simple-protobuf"]
80-
version = "v0.1.0"
81-
hash = "sha256-itOBeIU4PRBANDP79eRWlCDNhNUnde6dgcpUlUbm0zU="
80+
version = "v0.2.0"
81+
hash = "sha256-2kULBi1sXsFDX2g/KRFmCGkwF60o/UXacNUbIYa/cvw="
8282
[mod."github.com/fumiama/gofastTEA"]
8383
version = "v0.0.10"
8484
hash = "sha256-FOCbkXoS8s/K54yZbhX5pmaN/ouELnCHZoNS8a90VAg="
@@ -91,6 +91,9 @@ schema = 3
9191
[mod."github.com/fumiama/jieba"]
9292
version = "v0.0.0-20221203025406-36c17a10b565"
9393
hash = "sha256-DvDx1pdldkdaSszrbadM/VwqT9TTSmWl6G6a+ysXYEM="
94+
[mod."github.com/fumiama/terasu"]
95+
version = "v0.0.0-20240502091919-c887e26289a8"
96+
hash = "sha256-qDxUn006m2FDZWp+HQNZVyiVfL9EG7XANY4nP2awinw="
9497
[mod."github.com/fumiama/unibase2n"]
9598
version = "v0.0.0-20221020155353-02876e777430"
9699
hash = "sha256-//vCLy5/vgId7m9WnRGqmh/wnglboiYz2YzQruIe97o="
@@ -100,21 +103,12 @@ schema = 3
100103
[mod."github.com/go-ole/go-ole"]
101104
version = "v1.2.6"
102105
hash = "sha256-+oxitLeJxYF19Z6g+6CgmCHJ1Y5D8raMi2Cb3M6nXCs="
103-
[mod."github.com/go-task/slim-sprig"]
104-
version = "v0.0.0-20230315185526-52ccab3ef572"
105-
hash = "sha256-D6NjCQbcYC53NdwzyAm4i9M1OjTJIVu4EIt3AD/Vxfg="
106106
[mod."github.com/golang/freetype"]
107107
version = "v0.0.0-20170609003504-e2365dfdc4a0"
108108
hash = "sha256-AHAFBd20/tqxohkWyQkui2bUef9i1HWYgk9LOIFErvA="
109109
[mod."github.com/golang/groupcache"]
110110
version = "v0.0.0-20210331224755-41bb18bfe9da"
111111
hash = "sha256-7Gs7CS9gEYZkbu5P4hqPGBpeGZWC64VDwraSKFF+VR0="
112-
[mod."github.com/golang/mock"]
113-
version = "v1.6.0"
114-
hash = "sha256-fWdnMQisRbiRzGT3ISrUHovquzLRHWvcv1JEsJFZRno="
115-
[mod."github.com/google/pprof"]
116-
version = "v0.0.0-20210407192527-94a9f03dee38"
117-
hash = "sha256-ryvI75ePFCfy0qvAhEFbtB/c/Er7nvLwm7CVASBRhsI="
118112
[mod."github.com/google/uuid"]
119113
version = "v1.3.0"
120114
hash = "sha256-QoR55eBtA94T2tBszyxfDtO7/pjZZSGb5vm7U0Xhs0Y="
@@ -169,9 +163,6 @@ schema = 3
169163
[mod."github.com/notnil/chess"]
170164
version = "v1.9.0"
171165
hash = "sha256-2bHp/H5hBE/hPMT1HLOBqMaCZ/DYWJMDri26O9Yzoms="
172-
[mod."github.com/onsi/ginkgo/v2"]
173-
version = "v2.9.5"
174-
hash = "sha256-3HO85y+nGsg92NEg3OOYXy5GxB59Yl1idF5sBZnyIi4="
175166
[mod."github.com/pbnjay/memory"]
176167
version = "v0.0.0-20210728143218-7b4eea64cf58"
177168
hash = "sha256-QI+F1oPLOOtwNp8+m45OOoSfYFs3QVjGzE0rFdpF/IA="
@@ -184,15 +175,6 @@ schema = 3
184175
[mod."github.com/power-devops/perfstat"]
185176
version = "v0.0.0-20210106213030-5aafc221ea8c"
186177
hash = "sha256-ywykDYuqcMt0TvZOz1l9Z6Z2JMTYQw8cP2fT8AtpmX4="
187-
[mod."github.com/quic-go/qpack"]
188-
version = "v0.4.0"
189-
hash = "sha256-QWIumzmHD94DlNp9G3AQf9QCtF+Kv0pShT1+FH7/I/c="
190-
[mod."github.com/quic-go/qtls-go1-20"]
191-
version = "v0.3.3"
192-
hash = "sha256-YiT0g2gUxaZgJlQqQDkQqJme44LYHdzErHVEbY3bIa0="
193-
[mod."github.com/quic-go/quic-go"]
194-
version = "v0.38.1"
195-
hash = "sha256-CC1E4sLcoMA1Jb9QdiVBaBq9GNUmxAPGBz3f/SJaHDY="
196178
[mod."github.com/remyoudompheng/bigfft"]
197179
version = "v0.0.0-20211011143303-6e0bfa3c836b"
198180
hash = "sha256-SHwiLdLvGHYnbWm+03ddYc2550RdFdx/VadJfZyQEKA="
@@ -225,20 +207,14 @@ schema = 3
225207
version = "v2.1.0"
226208
hash = "sha256-0s07aT7i3zMyVaS1hHO6SaCilVy39HwC8Po6wcENn9E="
227209
[mod."github.com/wdvxdr1123/ZeroBot"]
228-
version = "v1.7.5-0.20231009162356-57f71b9f5258"
229-
hash = "sha256-sIrH0WUDJeEGMD8FWh8UyrI3aHNN6NT7l+/isSl3ico="
210+
version = "v1.7.5-0.20240505070304-562ffeb33dcd"
211+
hash = "sha256-2VKVJJ9jqbWjEPrvqLaMEK+Qpl4HiB4nJX7ebHcbDYA="
230212
[mod."github.com/yusufpapurcu/wmi"]
231213
version = "v1.2.2"
232214
hash = "sha256-Rno6F82JIeglBobQl6YKl3U6+FvWXmFavJlzpOJgoXI="
233215
[mod."gitlab.com/gomidi/midi/v2"]
234216
version = "v2.0.25"
235217
hash = "sha256-3oTPzuPX1hNd+6/5kRUcMfMztvQa2UWHPppp8OPiP90="
236-
[mod."golang.org/x/crypto"]
237-
version = "v0.4.0"
238-
hash = "sha256-PvHIbuooDItiNyQEi8kKgybkc0o95B0aeMd9awVGFCY="
239-
[mod."golang.org/x/exp"]
240-
version = "v0.0.0-20221205204356-47842c84f3db"
241-
hash = "sha256-HWHDTTbsKZp1bMN06ZKluiLt8Yfjtnf1XhR9GWp4rQk="
242218
[mod."golang.org/x/exp/shiny"]
243219
version = "v0.0.0-20221126150942-6ab00d035af9"
244220
hash = "sha256-+OAzuS+wyjOBSarGBuHjMeQV3vZzTbmF7CH8wnE7aA8="
@@ -248,21 +224,15 @@ schema = 3
248224
[mod."golang.org/x/mobile"]
249225
version = "v0.0.0-20201217150744-e6ae53a27f4f"
250226
hash = "sha256-NdxlpSJhVpmE/T84HHoPtQ1GPCvDNkbNzNTYa5HEEYE="
251-
[mod."golang.org/x/mod"]
252-
version = "v0.10.0"
253-
hash = "sha256-g0T2wz+K0nhPWdVQJRGGqEqzlTHMBahv+9C3y090eIM="
254227
[mod."golang.org/x/net"]
255-
version = "v0.10.0"
256-
hash = "sha256-HkGiUYBZOBdOtt7mYo3N3swFjjAXzW++pG2JeWGJR9Q="
228+
version = "v0.24.0"
229+
hash = "sha256-w1c21ljta5wNIyel9CSIn/crPzwOCRofNKhqmfs4aEQ="
257230
[mod."golang.org/x/sys"]
258-
version = "v0.8.0"
259-
hash = "sha256-wLPPnoFkHM1HPUaFIfRyQZOJjrqXVZimB0nMySly7Xg="
231+
version = "v0.19.0"
232+
hash = "sha256-cmuL31TYLJmDm/fDnI2Sn0wB88cpdOHV1+urorsJWx4="
260233
[mod."golang.org/x/text"]
261-
version = "v0.9.0"
262-
hash = "sha256-tkhDeMsSQZr3jo7vmKehWs3DvWetwXR0IB+DCLbQ4nk="
263-
[mod."golang.org/x/tools"]
264-
version = "v0.9.1"
265-
hash = "sha256-6jvh0cvdVMvGBceeBxWFj0+bFvboB8wuIYPHabxrST0="
234+
version = "v0.15.0"
235+
hash = "sha256-pBnj0AEkfkvZf+3bN7h6epCD2kurw59clDP7yWvxKlk="
266236
[mod."gopkg.in/check.v1"]
267237
version = "v1.0.0-20201130134442-10cb98267c6c"
268238
hash = "sha256-VlIpM2r/OD+kkyItn6vW35dyc0rtkJufA93rjFyzncs="

0 commit comments

Comments
 (0)