Skip to content

Commit c78ee5a

Browse files
🏑 Housekeeping: Update to Go 1.17 (v2fly#1215)
* ⬆ Update to Go 1.17 * πŸ— Update workflows and add windows-arm64 * πŸ’Ύ Update generated files * πŸ“› Update not-so-friendly filenames
1 parent 91ae805 commit c78ee5a

File tree

215 files changed

+250
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+250
-90
lines changed

β€Ž.github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go 1.x
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: ^1.16.4
25+
go-version: ^1.17
2626

2727
- name: Checkout codebase
2828
uses: actions/checkout@v2

β€Ž.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
goarch: arm64
5858
- goos: linux
5959
goarch: riscv64
60+
- goos: windows
61+
goarch: arm64
6062
# BEGIN MIPS
6163
- goos: linux
6264
goarch: mips64
@@ -98,7 +100,7 @@ jobs:
98100
- name: Set up Go
99101
uses: actions/setup-go@v2
100102
with:
101-
go-version: ^1.16.4
103+
go-version: ^1.17
102104

103105
- name: Get project dependencies
104106
run: go mod download
@@ -169,7 +171,7 @@ jobs:
169171
- name: Set up Go
170172
uses: actions/setup-go@v2
171173
with:
172-
go-version: ^1.16.4
174+
go-version: ^1.17
173175

174176
- uses: actions/download-artifact@v2
175177
with:

β€Ž.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Go 1.x
3131
uses: actions/setup-go@v2
3232
with:
33-
go-version: ^1.16.4
33+
go-version: ^1.17
3434

3535
- name: Checkout codebase
3636
uses: actions/checkout@v2

β€Žapp/browserforwarder/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/browserforwarder/forwarder.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package browserforwarder

β€Žapp/commander/commander.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package commander

β€Žapp/commander/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/commander/outbound.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package commander

β€Žapp/commander/service.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package commander

β€Žapp/dispatcher/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/dispatcher/default.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dispatcher

β€Žapp/dispatcher/dispatcher.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dispatcher

β€Žapp/dispatcher/fakednssniffer.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dispatcher

β€Žapp/dispatcher/sniffer.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dispatcher

β€Žapp/dispatcher/stats.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dispatcher

β€Žapp/dns/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/dns/dns.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
// Package dns is an implementation of core.DNS feature.

β€Žapp/dns/dnscommon.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/dnscommon_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/fakedns/fake.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package fakedns

β€Žapp/dns/fakedns/fakedns.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package fakedns

β€Žapp/dns/fakedns/fakedns.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/dns/hosts.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver_doh.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver_fakedns.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver_local.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver_quic.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver_tcp.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/dns/nameserver_udp.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package dns

β€Žapp/log/command/command.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package command

β€Žapp/log/command/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/log/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/log/log.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package log

β€Žapp/log/log_creator.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package log

β€Žapp/observatory/command/command.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package command

β€Žapp/observatory/command/command.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/observatory/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/observatory/observer.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package observatory

β€Žapp/policy/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/proxyman/command/command.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package command

β€Žapp/proxyman/command/command.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/proxyman/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/reverse/bridge.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package reverse

β€Žapp/reverse/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package reverse

β€Žapp/reverse/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/reverse/portal.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package reverse

β€Žapp/reverse/reverse.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package reverse

β€Žapp/router/balancing.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package router

β€Žapp/router/command/command.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package command

β€Žapp/router/command/command.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/router/condition.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package router

β€Žapp/router/condition_geoip.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package router

β€Žapp/router/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package router

β€Žapp/router/config.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/router/router.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package router

β€Žapp/router/strategy_leastping.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package router

β€Žapp/stats/channel.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package stats

β€Žapp/stats/command/command.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !confonly
12
// +build !confonly
23

34
package command

β€Žapp/stats/command/command.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)