Skip to content

Commit 2dc60f5

Browse files
authored
Chore: format code & update dependencies (#385)
* Chore: check Go modules before test & update dependencies * Chore: run go fmt to format code
1 parent 6341a5e commit 2dc60f5

File tree

20 files changed

+41
-445
lines changed

20 files changed

+41
-445
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,11 @@ jobs:
3333
- name: Checkout code
3434
uses: actions/checkout@v2
3535

36+
- name: Check Go modules
37+
run: |
38+
go mod tidy -compat=1.17
39+
git diff --exit-code go.mod go.sum
40+
go mod verify
41+
3642
- name: Test
3743
run: make test

component/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build api || full
12
// +build api full
23

34
package build

component/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build client || full || mini
12
// +build client full mini
23

34
package build

component/custom.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build custom || full
12
// +build custom full
23

34
package build

component/forward.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build forward || full || mini
12
// +build forward full mini
23

34
package build

component/mysql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build mysql || full || mini
12
// +build mysql full mini
23

34
package build

component/nat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build nat || full || mini
12
// +build nat full mini
23

34
package build

component/other.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build other || full
12
// +build other full
23

34
package build

component/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build server || full || mini
12
// +build server full mini
23

34
package build

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ require (
99
github.com/smartystreets/goconvey v1.6.4
1010
github.com/stretchr/testify v1.7.0
1111
github.com/txthinking/socks5 v0.0.0-20210716140126-fa1f52a8f2da
12-
github.com/v2fly/v2ray-core/v4 v4.41.1
12+
github.com/v2fly/v2ray-core/v4 v4.42.1
1313
github.com/xtaci/smux v1.5.15
14-
golang.org/x/net v0.0.0-20210825183410-e898025ed96a
14+
golang.org/x/net v0.0.0-20210913180222-943fd674d43e
1515
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b
1616
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac
1717
google.golang.org/grpc v1.40.0
@@ -22,7 +22,7 @@ require (
2222
require (
2323
github.com/davecgh/go-spew v1.1.1 // indirect
2424
github.com/golang/protobuf v1.5.2 // indirect
25-
github.com/gopherjs/gopherjs v0.0.0-20210420193930-a4630ec28c79 // indirect
25+
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect
2626
github.com/jtolds/gls v4.20.0+incompatible // indirect
2727
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
2828
github.com/pires/go-proxyproto v0.6.0 // indirect
@@ -32,8 +32,8 @@ require (
3232
github.com/txthinking/runnergroup v0.0.0-20210608031112-152c7c4432bf // indirect
3333
github.com/txthinking/x v0.0.0-20210326105829-476fab902fbe // indirect
3434
go.starlark.net v0.0.0-20210602144842-1cdb82c9e17a // indirect
35-
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
36-
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect
35+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
36+
golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 // indirect
3737
golang.org/x/text v0.3.6 // indirect
3838
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
3939
)

0 commit comments

Comments
 (0)