Pull request 1997: upd-go
Squashed commit of the following: commit 7e558500d08328b4dca4ef67160334f27c8c48d6 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Sep 7 13:54:50 2023 +0300 all: upd go, tools
This commit is contained in:
parent
93d7be1604
commit
0b3920df62
|
@ -1,7 +1,7 @@
|
||||||
'name': 'build'
|
'name': 'build'
|
||||||
|
|
||||||
'env':
|
'env':
|
||||||
'GO_VERSION': '1.20.7'
|
'GO_VERSION': '1.20.8'
|
||||||
'NODE_VERSION': '14'
|
'NODE_VERSION': '14'
|
||||||
|
|
||||||
'on':
|
'on':
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'name': 'lint'
|
'name': 'lint'
|
||||||
|
|
||||||
'env':
|
'env':
|
||||||
'GO_VERSION': '1.20.7'
|
'GO_VERSION': '1.20.8'
|
||||||
|
|
||||||
'on':
|
'on':
|
||||||
'push':
|
'push':
|
||||||
|
|
26
CHANGELOG.md
26
CHANGELOG.md
|
@ -23,12 +23,18 @@ See also the [v0.107.37 GitHub milestone][ms-v0.107.37].
|
||||||
NOTE: Add new changes BELOW THIS COMMENT.
|
NOTE: Add new changes BELOW THIS COMMENT.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
- Go version has been updated to prevent the possibility of exploiting the
|
||||||
|
CVE-2023-39318, CVE-2023-39319, and CVE-2023-39320 Go vulnerabilities fixed in
|
||||||
|
[Go 1.20.8][go-1.20.8].
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- AdBlock-style syntax support for ignored domains in logs and statistics
|
- AdBlock-style syntax support for ignored domains in logs and statistics
|
||||||
([#5720]).
|
([#5720]).
|
||||||
- [`Strict-Transport-Security`][hsts] header in the HTTP API and DNS-over-HTTPS
|
- [`Strict-Transport-Security`][hsts] header in the HTTP API and DNS-over-HTTPS
|
||||||
responses when HTTPS is forced ([#2998]). See [RFC 6979][rfc6797].
|
responses when HTTPS is forced ([#2998]). See [RFC 6797][rfc6797].
|
||||||
- UI for the schedule of the service-blocking pause ([#951]).
|
- UI for the schedule of the service-blocking pause ([#951]).
|
||||||
- IPv6 hints are now filtered in case IPv6 addresses resolving is disabled
|
- IPv6 hints are now filtered in case IPv6 addresses resolving is disabled
|
||||||
([#6122]).
|
([#6122]).
|
||||||
|
@ -36,7 +42,8 @@ NOTE: Add new changes BELOW THIS COMMENT.
|
||||||
([#3701]).
|
([#3701]).
|
||||||
- While adding or updating blocklists, the title can now be parsed from
|
- While adding or updating blocklists, the title can now be parsed from
|
||||||
`! Title:` definition of the blocklist's source ([#6020]).
|
`! Title:` definition of the blocklist's source ([#6020]).
|
||||||
- The ability to filter DNS HTTPS records including IPv4/v6 hints ([#6053]).
|
- The ability to filter DNS HTTPS records including IPv4 and IPv6 hints
|
||||||
|
([#6053]).
|
||||||
- Two new metrics showing total number of responses from each upstream DNS
|
- Two new metrics showing total number of responses from each upstream DNS
|
||||||
server and their average processing time in the Web UI ([#1453]).
|
server and their average processing time in the Web UI ([#1453]).
|
||||||
- The ability to set the port for the `pprof` debug API, see configuration
|
- The ability to set the port for the `pprof` debug API, see configuration
|
||||||
|
@ -54,9 +61,9 @@ NOTE: Add new changes BELOW THIS COMMENT.
|
||||||
|
|
||||||
In this release, the schema version has changed from 24 to 27.
|
In this release, the schema version has changed from 24 to 27.
|
||||||
|
|
||||||
- Ignore rules blocking `.` in `querylog.…` and `stats.…` have been migrated to
|
- Ignore rules blocking `.` in `querylog.ignored` and `statistics.ignored` have
|
||||||
AdBlock syntax (`|.^`). To rollback this change, restore the rules and
|
been migrated to AdBlock syntax (`|.^`). To rollback this change, restore the
|
||||||
change the `schema_version` back to `26`.
|
rules and change the `schema_version` back to `26`.
|
||||||
|
|
||||||
- Filtering-related settings have been moved from `dns` section of the YAML
|
- Filtering-related settings have been moved from `dns` section of the YAML
|
||||||
configuration file to the new section `filtering`:
|
configuration file to the new section `filtering`:
|
||||||
|
@ -173,8 +180,9 @@ In this release, the schema version has changed from 24 to 27.
|
||||||
[#6122]: https://github.com/AdguardTeam/AdGuardHome/issues/6122
|
[#6122]: https://github.com/AdguardTeam/AdGuardHome/issues/6122
|
||||||
[#6133]: https://github.com/AdguardTeam/AdGuardHome/issues/6133
|
[#6133]: https://github.com/AdguardTeam/AdGuardHome/issues/6133
|
||||||
|
|
||||||
[hsts]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
|
[go-1.20.8]: https://groups.google.com/g/golang-announce/c/Fm51GRLNRvM/m/F5bwBlXMAQAJ
|
||||||
[rfc6797]: https://datatracker.ietf.org/doc/html/rfc6797
|
[hsts]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
|
||||||
|
[rfc6797]: https://datatracker.ietf.org/doc/html/rfc6797
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NOTE: Add new changes ABOVE THIS COMMENT.
|
NOTE: Add new changes ABOVE THIS COMMENT.
|
||||||
|
@ -780,7 +788,6 @@ See also the [v0.107.26 GitHub milestone][ms-v0.107.26].
|
||||||
been relaxed to meet those from [RFC 3696][rfc3696] ([#4884]).
|
been relaxed to meet those from [RFC 3696][rfc3696] ([#4884]).
|
||||||
- Failing service installation via script on FreeBSD ([#5431]).
|
- Failing service installation via script on FreeBSD ([#5431]).
|
||||||
|
|
||||||
[#1472]: https://github.com/AdguardTeam/AdGuardHome/issues/1472
|
|
||||||
[#4884]: https://github.com/AdguardTeam/AdGuardHome/issues/4884
|
[#4884]: https://github.com/AdguardTeam/AdGuardHome/issues/4884
|
||||||
[#5270]: https://github.com/AdguardTeam/AdGuardHome/issues/5270
|
[#5270]: https://github.com/AdguardTeam/AdGuardHome/issues/5270
|
||||||
[#5281]: https://github.com/AdguardTeam/AdGuardHome/issues/5281
|
[#5281]: https://github.com/AdguardTeam/AdGuardHome/issues/5281
|
||||||
|
@ -1399,7 +1406,6 @@ See also the [v0.107.10 GitHub milestone][ms-v0.107.10].
|
||||||
[#4342]: https://github.com/AdguardTeam/AdGuardHome/issues/4342
|
[#4342]: https://github.com/AdguardTeam/AdGuardHome/issues/4342
|
||||||
[#4358]: https://github.com/AdguardTeam/AdGuardHome/issues/4358
|
[#4358]: https://github.com/AdguardTeam/AdGuardHome/issues/4358
|
||||||
[#4670]: https://github.com/AdguardTeam/AdGuardHome/issues/4670
|
[#4670]: https://github.com/AdguardTeam/AdGuardHome/issues/4670
|
||||||
[#4836]: https://github.com/AdguardTeam/AdGuardHome/issues/4836
|
|
||||||
[#4843]: https://github.com/AdguardTeam/AdGuardHome/issues/4843
|
[#4843]: https://github.com/AdguardTeam/AdGuardHome/issues/4843
|
||||||
|
|
||||||
[ddr-draft]: https://datatracker.ietf.org/doc/html/draft-ietf-add-ddr-08
|
[ddr-draft]: https://datatracker.ietf.org/doc/html/draft-ietf-add-ddr-08
|
||||||
|
@ -2033,9 +2039,7 @@ In this release, the schema version has changed from 10 to 12.
|
||||||
[#3558]: https://github.com/AdguardTeam/AdGuardHome/issues/3558
|
[#3558]: https://github.com/AdguardTeam/AdGuardHome/issues/3558
|
||||||
[#3564]: https://github.com/AdguardTeam/AdGuardHome/issues/3564
|
[#3564]: https://github.com/AdguardTeam/AdGuardHome/issues/3564
|
||||||
[#3567]: https://github.com/AdguardTeam/AdGuardHome/issues/3567
|
[#3567]: https://github.com/AdguardTeam/AdGuardHome/issues/3567
|
||||||
[#3568]: https://github.com/AdguardTeam/AdGuardHome/issues/3568
|
|
||||||
[#3579]: https://github.com/AdguardTeam/AdGuardHome/issues/3579
|
[#3579]: https://github.com/AdguardTeam/AdGuardHome/issues/3579
|
||||||
[#3607]: https://github.com/AdguardTeam/AdGuardHome/issues/3607
|
|
||||||
[#3638]: https://github.com/AdguardTeam/AdGuardHome/issues/3638
|
[#3638]: https://github.com/AdguardTeam/AdGuardHome/issues/3638
|
||||||
[#3655]: https://github.com/AdguardTeam/AdGuardHome/issues/3655
|
[#3655]: https://github.com/AdguardTeam/AdGuardHome/issues/3655
|
||||||
[#3707]: https://github.com/AdguardTeam/AdGuardHome/issues/3707
|
[#3707]: https://github.com/AdguardTeam/AdGuardHome/issues/3707
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# Make sure to sync any changes with the branch overrides below.
|
# Make sure to sync any changes with the branch overrides below.
|
||||||
'variables':
|
'variables':
|
||||||
'channel': 'edge'
|
'channel': 'edge'
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
|
|
||||||
'stages':
|
'stages':
|
||||||
- 'Build frontend':
|
- 'Build frontend':
|
||||||
|
@ -272,7 +272,7 @@
|
||||||
# need to build a few of these.
|
# need to build a few of these.
|
||||||
'variables':
|
'variables':
|
||||||
'channel': 'beta'
|
'channel': 'beta'
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
# release-vX.Y.Z branches are the branches from which the actual final
|
# release-vX.Y.Z branches are the branches from which the actual final
|
||||||
# release is built.
|
# release is built.
|
||||||
- '^release-v[0-9]+\.[0-9]+\.[0-9]+':
|
- '^release-v[0-9]+\.[0-9]+\.[0-9]+':
|
||||||
|
@ -287,4 +287,4 @@
|
||||||
# are the ones that actually get released.
|
# are the ones that actually get released.
|
||||||
'variables':
|
'variables':
|
||||||
'channel': 'release'
|
'channel': 'release'
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# Make sure to sync any changes with the branch overrides below.
|
# Make sure to sync any changes with the branch overrides below.
|
||||||
'variables':
|
'variables':
|
||||||
'channel': 'edge'
|
'channel': 'edge'
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
'snapcraftChannel': 'edge'
|
'snapcraftChannel': 'edge'
|
||||||
|
|
||||||
'stages':
|
'stages':
|
||||||
|
@ -191,7 +191,7 @@
|
||||||
# need to build a few of these.
|
# need to build a few of these.
|
||||||
'variables':
|
'variables':
|
||||||
'channel': 'beta'
|
'channel': 'beta'
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
'snapcraftChannel': 'beta'
|
'snapcraftChannel': 'beta'
|
||||||
# release-vX.Y.Z branches are the branches from which the actual final
|
# release-vX.Y.Z branches are the branches from which the actual final
|
||||||
# release is built.
|
# release is built.
|
||||||
|
@ -207,5 +207,5 @@
|
||||||
# are the ones that actually get released.
|
# are the ones that actually get released.
|
||||||
'variables':
|
'variables':
|
||||||
'channel': 'release'
|
'channel': 'release'
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
'snapcraftChannel': 'candidate'
|
'snapcraftChannel': 'candidate'
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
'key': 'AHBRTSPECS'
|
'key': 'AHBRTSPECS'
|
||||||
'name': 'AdGuard Home - Build and run tests'
|
'name': 'AdGuard Home - Build and run tests'
|
||||||
'variables':
|
'variables':
|
||||||
'dockerGo': 'adguard/golang-ubuntu:7.0'
|
'dockerGo': 'adguard/golang-ubuntu:7.1'
|
||||||
|
|
||||||
'stages':
|
'stages':
|
||||||
- 'Tests':
|
- 'Tests':
|
||||||
|
|
|
@ -9,8 +9,10 @@ require (
|
||||||
github.com/kisielk/errcheck v1.6.3
|
github.com/kisielk/errcheck v1.6.3
|
||||||
github.com/kyoh86/looppointer v0.2.1
|
github.com/kyoh86/looppointer v0.2.1
|
||||||
github.com/securego/gosec/v2 v2.17.0
|
github.com/securego/gosec/v2 v2.17.0
|
||||||
github.com/uudashr/gocognit v1.0.7
|
// TODO(a.garipov): Return to latest once the release is tagged
|
||||||
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846
|
// correctly. See uudashr/gocognit#31.
|
||||||
|
github.com/uudashr/gocognit v1.0.8-0.20230906062305-bc9ca12659bf
|
||||||
|
golang.org/x/tools v0.13.0
|
||||||
golang.org/x/vuln v1.0.1
|
golang.org/x/vuln v1.0.1
|
||||||
honnef.co/go/tools v0.4.5
|
honnef.co/go/tools v0.4.5
|
||||||
mvdan.cc/gofumpt v0.5.0
|
mvdan.cc/gofumpt v0.5.0
|
||||||
|
@ -26,9 +28,9 @@ require (
|
||||||
github.com/kyoh86/nolint v0.0.1 // indirect
|
github.com/kyoh86/nolint v0.0.1 // indirect
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
||||||
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
|
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
|
||||||
golang.org/x/exp/typeparams v0.0.0-20230817173708-d852ddb80c63 // indirect
|
golang.org/x/exp/typeparams v0.0.0-20230905200255-921286631fa9 // indirect
|
||||||
golang.org/x/mod v0.12.0 // indirect
|
golang.org/x/mod v0.12.0 // indirect
|
||||||
golang.org/x/sync v0.3.0 // indirect
|
golang.org/x/sync v0.3.0 // indirect
|
||||||
golang.org/x/sys v0.11.0 // indirect
|
golang.org/x/sys v0.12.0 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -36,8 +36,8 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR
|
||||||
github.com/securego/gosec/v2 v2.17.0 h1:ZpAStTDKY39insEG9OH6kV3IkhQZPTq9a9eGOLOjcdI=
|
github.com/securego/gosec/v2 v2.17.0 h1:ZpAStTDKY39insEG9OH6kV3IkhQZPTq9a9eGOLOjcdI=
|
||||||
github.com/securego/gosec/v2 v2.17.0/go.mod h1:lt+mgC91VSmriVoJLentrMkRCYs+HLTBnUFUBuhV2hc=
|
github.com/securego/gosec/v2 v2.17.0/go.mod h1:lt+mgC91VSmriVoJLentrMkRCYs+HLTBnUFUBuhV2hc=
|
||||||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
|
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
|
||||||
github.com/uudashr/gocognit v1.0.7 h1:e9aFXgKgUJrQ5+bs61zBigmj7bFJ/5cC6HmMahVzuDo=
|
github.com/uudashr/gocognit v1.0.8-0.20230906062305-bc9ca12659bf h1:LA5CHw6L5BvI0RjqvBYa9+3hXAL2rhuAJPtS5rS2a2k=
|
||||||
github.com/uudashr/gocognit v1.0.7/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY=
|
github.com/uudashr/gocognit v1.0.8-0.20230906062305-bc9ca12659bf/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY=
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
||||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
@ -49,8 +49,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
|
||||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug=
|
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug=
|
||||||
golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
|
golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
|
||||||
golang.org/x/exp/typeparams v0.0.0-20230817173708-d852ddb80c63 h1:XkcpbHJE31bhdecT6qfUGtB7MCIKA8Vb9uGOyX/T364=
|
golang.org/x/exp/typeparams v0.0.0-20230905200255-921286631fa9 h1:j3D9DvWRpUfIyFfDPws7LoIZ2MAI1OJHdQXtTnYtN+k=
|
||||||
golang.org/x/exp/typeparams v0.0.0-20230817173708-d852ddb80c63/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
|
golang.org/x/exp/typeparams v0.0.0-20230905200255-921286631fa9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
|
||||||
|
@ -63,7 +63,7 @@ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81R
|
||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||||
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14=
|
golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8=
|
||||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
@ -79,8 +79,8 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
|
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
|
||||||
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
@ -93,8 +93,8 @@ golang.org/x/tools v0.0.0-20201007032633-0806396f153e/go.mod h1:z6u4i615ZeAfBE4X
|
||||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||||
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
|
||||||
golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4=
|
golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4=
|
||||||
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 h1:Vve/L0v7CXXuxUmaMGIEK/dEeq7uiqb5qBgQrZzIE7E=
|
golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=
|
||||||
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM=
|
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
|
||||||
golang.org/x/vuln v1.0.1 h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=
|
golang.org/x/vuln v1.0.1 h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=
|
||||||
golang.org/x/vuln v1.0.1/go.mod h1:bb2hMwln/tqxg32BNY4CcxHWtHXuYa3SbIBmtsyjxtM=
|
golang.org/x/vuln v1.0.1/go.mod h1:bb2hMwln/tqxg32BNY4CcxHWtHXuYa3SbIBmtsyjxtM=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
|
|
@ -35,7 +35,7 @@ set -f -u
|
||||||
go_version="$( "${GO:-go}" version )"
|
go_version="$( "${GO:-go}" version )"
|
||||||
readonly go_version
|
readonly go_version
|
||||||
|
|
||||||
go_min_version='go1.20.7'
|
go_min_version='go1.20.8'
|
||||||
go_version_msg="
|
go_version_msg="
|
||||||
warning: your go version (${go_version}) is different from the recommended minimal one (${go_min_version}).
|
warning: your go version (${go_version}) is different from the recommended minimal one (${go_min_version}).
|
||||||
if you have the version installed, please set the GO environment variable.
|
if you have the version installed, please set the GO environment variable.
|
||||||
|
@ -171,48 +171,60 @@ run_linter govulncheck ./...
|
||||||
run_linter gocyclo --over 10 .
|
run_linter gocyclo --over 10 .
|
||||||
|
|
||||||
# TODO(a.garipov): Enable 10 for all.
|
# TODO(a.garipov): Enable 10 for all.
|
||||||
#
|
run_linter gocognit --over='20'\
|
||||||
# TODO(a.garipov): Redo once https://github.com/uudashr/gocognit/issues/22 is
|
./internal/querylog/\
|
||||||
# fixed.
|
;
|
||||||
gocognit_paths="\
|
|
||||||
./internal/aghnet/ 20
|
|
||||||
./internal/querylog/ 20
|
|
||||||
./internal/dnsforward/ 19
|
|
||||||
./internal/home/ 19
|
|
||||||
./internal/aghtls/ 18
|
|
||||||
./internal/filtering 17
|
|
||||||
./internal/filtering/rewrite/ 17
|
|
||||||
./internal/aghos/ 15
|
|
||||||
./internal/dhcpd/ 15
|
|
||||||
./internal/updater/ 12
|
|
||||||
./internal/aghtest/ 11
|
|
||||||
./internal/aghalg/ 10
|
|
||||||
./internal/aghchan/ 10
|
|
||||||
./internal/aghhttp/ 10
|
|
||||||
./internal/aghio/ 10
|
|
||||||
./internal/aghrenameio/ 10
|
|
||||||
./internal/arpdb/ 10
|
|
||||||
./internal/client/ 10
|
|
||||||
./internal/confmigrate/ 10
|
|
||||||
./internal/dhcpsvc 10
|
|
||||||
./internal/filtering/hashprefix/ 10
|
|
||||||
./internal/filtering/rulelist/ 10
|
|
||||||
./internal/filtering/safesearch/ 10
|
|
||||||
./internal/next/ 10
|
|
||||||
./internal/rdns/ 10
|
|
||||||
./internal/schedule/ 10
|
|
||||||
./internal/stats/ 10
|
|
||||||
./internal/tools/ 10
|
|
||||||
./internal/version/ 10
|
|
||||||
./internal/whois/ 10
|
|
||||||
./scripts/ 10"
|
|
||||||
|
|
||||||
readonly gocognit_paths
|
run_linter gocognit --over='19'\
|
||||||
|
./internal/home/\
|
||||||
|
;
|
||||||
|
|
||||||
echo "$gocognit_paths" | while read -r path max
|
run_linter gocognit --over='18'\
|
||||||
do
|
./internal/aghtls/\
|
||||||
run_linter gocognit --over="$max" "$path"
|
;
|
||||||
done
|
|
||||||
|
run_linter gocognit --over='15'\
|
||||||
|
./internal/aghos/\
|
||||||
|
./internal/dnsforward/\
|
||||||
|
./internal/filtering/\
|
||||||
|
;
|
||||||
|
|
||||||
|
run_linter gocognit --over='14'\
|
||||||
|
./internal/dhcpd\
|
||||||
|
;
|
||||||
|
|
||||||
|
run_linter gocognit --over='13'\
|
||||||
|
./internal/aghnet/\
|
||||||
|
;
|
||||||
|
|
||||||
|
run_linter gocognit --over='12'\
|
||||||
|
./internal/updater/\
|
||||||
|
./internal/filtering/rewrite/\
|
||||||
|
;
|
||||||
|
|
||||||
|
run_linter gocognit --over='10'\
|
||||||
|
./internal/aghalg/\
|
||||||
|
./internal/aghchan/\
|
||||||
|
./internal/aghhttp/\
|
||||||
|
./internal/aghio/\
|
||||||
|
./internal/aghrenameio/\
|
||||||
|
./internal/aghtest/\
|
||||||
|
./internal/arpdb/\
|
||||||
|
./internal/client/\
|
||||||
|
./internal/confmigrate/\
|
||||||
|
./internal/dhcpsvc\
|
||||||
|
./internal/filtering/hashprefix/\
|
||||||
|
./internal/filtering/rulelist/\
|
||||||
|
./internal/filtering/safesearch/\
|
||||||
|
./internal/next/\
|
||||||
|
./internal/rdns/\
|
||||||
|
./internal/schedule/\
|
||||||
|
./internal/stats/\
|
||||||
|
./internal/tools/\
|
||||||
|
./internal/version/\
|
||||||
|
./internal/whois/\
|
||||||
|
./scripts/\
|
||||||
|
;
|
||||||
|
|
||||||
run_linter ineffassign ./...
|
run_linter ineffassign ./...
|
||||||
|
|
||||||
|
@ -232,28 +244,31 @@ run_linter -e shadow --strict ./...
|
||||||
|
|
||||||
# TODO(a.garipov): Enable for all.
|
# TODO(a.garipov): Enable for all.
|
||||||
run_linter gosec --quiet\
|
run_linter gosec --quiet\
|
||||||
./internal/aghalg\
|
./internal/aghalg/\
|
||||||
./internal/aghchan\
|
./internal/aghchan/\
|
||||||
./internal/aghhttp\
|
./internal/aghhttp/\
|
||||||
./internal/aghio\
|
./internal/aghio/\
|
||||||
./internal/aghnet\
|
./internal/aghnet/\
|
||||||
./internal/aghos\
|
./internal/aghos/\
|
||||||
./internal/aghrenameio/\
|
./internal/aghrenameio/\
|
||||||
./internal/aghtest\
|
./internal/aghtest/\
|
||||||
./internal/client\
|
./internal/arpdb/\
|
||||||
./internal/confmigrate\
|
./internal/client/\
|
||||||
./internal/dhcpd\
|
./internal/confmigrate/\
|
||||||
./internal/dhcpsvc\
|
./internal/dhcpd/\
|
||||||
./internal/dnsforward\
|
./internal/dhcpsvc/\
|
||||||
|
./internal/dnsforward/\
|
||||||
./internal/filtering/hashprefix/\
|
./internal/filtering/hashprefix/\
|
||||||
|
./internal/filtering/rewrite/\
|
||||||
./internal/filtering/rulelist/\
|
./internal/filtering/rulelist/\
|
||||||
./internal/next\
|
./internal/filtering/safesearch/\
|
||||||
./internal/rdns\
|
./internal/next/\
|
||||||
./internal/schedule\
|
./internal/rdns/\
|
||||||
./internal/stats\
|
./internal/schedule/\
|
||||||
./internal/tools\
|
./internal/stats/\
|
||||||
./internal/version\
|
./internal/tools/\
|
||||||
./internal/whois\
|
./internal/version/\
|
||||||
|
./internal/whois/\
|
||||||
;
|
;
|
||||||
|
|
||||||
run_linter errcheck ./...
|
run_linter errcheck ./...
|
||||||
|
|
Loading…
Reference in New Issue