-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[relay] Update GO version and QUIC version #4736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
4882484
Update versions
pappz 4013dfc
Fix lint issue
pappz 8707676
Update Go version to 1.25
pappz 27f0242
Change lint version
pappz bf8f9fe
Remove out format from lint
pappz 976bd42
Update golangci.yaml
pappz 68768aa
Migrate golangci config
pappz a3d78d5
remove invalid rule
pappz bba244d
Update gomobile version in CI
pappz 48a0463
Fix some lint issue
pappz dd61022
Fix Android build
pappz b95c812
Fix lint issues in signal cmd and remove +build tags
pappz 2427890
Fix lint issues
pappz 6088a49
Fix build tags
pappz fe9117b
Update lint on wasm
pappz 065ca54
Fix non-constant format string
pappz 0ef704e
Fix test
pappz 116f961
Fix non-constant format string
pappz 35de600
Update google.golang.org/api/admin/directory/v1
pappz 3d85791
Revert embedded function calls in Relay lib
pappz 98b8114
Add skip-save-cache
pappz afe70cc
Clean cache
pappz fceb8a6
Debug lint issue
pappz 8b554a4
Remove lint for test
pappz dc679a2
Invalidate cache
pappz a367380
Add env and working dir
pappz 87f0cdc
Add skip cache
pappz 6d99a2f
Force to ignore cache the linter
pappz a2909b4
Merge branch 'main' into quic-update
pappz 10d3714
Dummy cache commit
pappz 277f2e2
Merge branch 'main' into quic-update
pappz 66182ca
Fix QF1003
pappz 3f314f9
Omit type uint32 from declaration
pappz 12555c0
Use exact hash for golang lint ci plugin
pappz 75baf0e
Merge branch 'main' into quic-update
pappz 8b46834
Fix lint issues
pappz 2e3220b
Fix lint issues
pappz 5548fb9
Fix lint
pappz d2c8f95
Fix lint
pappz 007cd85
Merge branch 'main' into quic-update
pappz 359bf2e
Disable parallel tests on Relay because hardcoded test ports
pappz e5c8365
Refactor test server configurations and fix hardcoded ports in relay …
pappz 76b387b
Fix lint
pappz 1f61b00
Update toolchain to 1.25.5
pappz 87b4f11
Update FreeBSD Go tarball
pappz 93334bc
Update devcontainer
pappz e3f15a9
Merge branch 'main' into quic-update
pappz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| FROM golang:1.23-bullseye | ||
| FROM golang:1.25-bookworm | ||
|
|
||
| RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
| && apt-get -y install --no-install-recommends\ | ||
| gettext-base=0.21-4 \ | ||
| iptables=1.8.7-1 \ | ||
| libgl1-mesa-dev=20.3.5-1 \ | ||
| xorg-dev=1:7.7+22 \ | ||
| libayatana-appindicator3-dev=0.5.5-2+deb11u2 \ | ||
| gettext-base=0.21-12 \ | ||
| iptables=1.8.9-2 \ | ||
| libgl1-mesa-dev=22.3.6-1+deb12u1 \ | ||
| xorg-dev=1:7.7+23 \ | ||
| libayatana-appindicator3-dev=0.5.92-1 \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && go install -v golang.org/x/tools/gopls@v0.18.1 | ||
| && go install -v golang.org/x/tools/gopls@latest | ||
|
|
||
|
|
||
| WORKDIR /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,139 +1,124 @@ | ||
| run: | ||
| # Timeout for analysis, e.g. 30s, 5m. | ||
| # Default: 1m | ||
| timeout: 6m | ||
|
|
||
| # This file contains only configs which differ from defaults. | ||
| # All possible options can be found here https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml | ||
| linters-settings: | ||
| errcheck: | ||
| # Report about not checking of errors in type assertions: `a := b.(MyStruct)`. | ||
| # Such cases aren't reported by default. | ||
| # Default: false | ||
| check-type-assertions: false | ||
|
|
||
| gosec: | ||
| includes: | ||
| - G101 # Look for hard coded credentials | ||
| #- G102 # Bind to all interfaces | ||
| - G103 # Audit the use of unsafe block | ||
| - G104 # Audit errors not checked | ||
| - G106 # Audit the use of ssh.InsecureIgnoreHostKey | ||
| #- G107 # Url provided to HTTP request as taint input | ||
| - G108 # Profiling endpoint automatically exposed on /debug/pprof | ||
| - G109 # Potential Integer overflow made by strconv.Atoi result conversion to int16/32 | ||
| - G110 # Potential DoS vulnerability via decompression bomb | ||
| - G111 # Potential directory traversal | ||
| #- G112 # Potential slowloris attack | ||
| - G113 # Usage of Rat.SetString in math/big with an overflow (CVE-2022-23772) | ||
| #- G114 # Use of net/http serve function that has no support for setting timeouts | ||
| - G201 # SQL query construction using format string | ||
| - G202 # SQL query construction using string concatenation | ||
| - G203 # Use of unescaped data in HTML templates | ||
| #- G204 # Audit use of command execution | ||
| - G301 # Poor file permissions used when creating a directory | ||
| - G302 # Poor file permissions used with chmod | ||
| - G303 # Creating tempfile using a predictable path | ||
| - G304 # File path provided as taint input | ||
| - G305 # File traversal when extracting zip/tar archive | ||
| - G306 # Poor file permissions used when writing to a new file | ||
| - G307 # Poor file permissions used when creating a file with os.Create | ||
| #- G401 # Detect the usage of DES, RC4, MD5 or SHA1 | ||
| #- G402 # Look for bad TLS connection settings | ||
| - G403 # Ensure minimum RSA key length of 2048 bits | ||
| #- G404 # Insecure random number source (rand) | ||
| #- G501 # Import blocklist: crypto/md5 | ||
| - G502 # Import blocklist: crypto/des | ||
| - G503 # Import blocklist: crypto/rc4 | ||
| - G504 # Import blocklist: net/http/cgi | ||
| #- G505 # Import blocklist: crypto/sha1 | ||
| - G601 # Implicit memory aliasing of items from a range statement | ||
| - G602 # Slice access out of bounds | ||
|
|
||
| gocritic: | ||
| disabled-checks: | ||
| - commentFormatting | ||
| - captLocal | ||
| - deprecatedComment | ||
|
|
||
| govet: | ||
| # Enable all analyzers. | ||
| # Default: false | ||
| enable-all: false | ||
| enable: | ||
| - nilness | ||
|
|
||
| revive: | ||
| rules: | ||
| - name: exported | ||
| severity: warning | ||
| disabled: false | ||
| arguments: | ||
| - "checkPrivateReceivers" | ||
| - "sayRepetitiveInsteadOfStutters" | ||
| tenv: | ||
| # The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures. | ||
| # Otherwise, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked. | ||
| # Default: false | ||
| all: true | ||
|
|
||
| version: "2" | ||
| linters: | ||
| disable-all: true | ||
| default: none | ||
| enable: | ||
| ## enabled by default | ||
| - errcheck # checking for unchecked errors, these unchecked errors can be critical bugs in some cases | ||
| - gosimple # specializes in simplifying a code | ||
| - govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string | ||
| - ineffassign # detects when assignments to existing variables are not used | ||
| - staticcheck # is a go vet on steroids, applying a ton of static analysis checks | ||
| - tenv # Tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17. | ||
| - typecheck # like the front-end of a Go compiler, parses and type-checks Go code | ||
| - unused # checks for unused constants, variables, functions and types | ||
| ## disable by default but the have interesting results so lets add them | ||
| - bodyclose # checks whether HTTP response body is closed successfully | ||
| - dupword # dupword checks for duplicate words in the source code | ||
| - durationcheck # durationcheck checks for two durations multiplied together | ||
| - forbidigo # forbidigo forbids identifiers | ||
| - gocritic # provides diagnostics that check for bugs, performance and style issues | ||
| - gosec # inspects source code for security problems | ||
| - mirror # mirror reports wrong mirror patterns of bytes/strings usage | ||
| - misspell # misspess finds commonly misspelled English words in comments | ||
| - nilerr # finds the code that returns nil even if it checks that the error is not nil | ||
| - nilnil # checks that there is no simultaneous return of nil error and an invalid value | ||
| - predeclared # predeclared finds code that shadows one of Go's predeclared identifiers | ||
| - revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint. | ||
| - sqlclosecheck # checks that sql.Rows and sql.Stmt are closed | ||
| # - thelper # thelper detects Go test helpers without t.Helper() call and checks the consistency of test helpers. | ||
| - wastedassign # wastedassign finds wasted assignment statements | ||
| - bodyclose | ||
| - dupword | ||
| - durationcheck | ||
| - errcheck | ||
| - forbidigo | ||
| - gocritic | ||
| - gosec | ||
| - govet | ||
| - ineffassign | ||
| - mirror | ||
| - misspell | ||
| - nilerr | ||
| - nilnil | ||
| - predeclared | ||
| - revive | ||
| - sqlclosecheck | ||
| - staticcheck | ||
| - unused | ||
| - wastedassign | ||
| settings: | ||
| errcheck: | ||
| check-type-assertions: false | ||
| gocritic: | ||
| disabled-checks: | ||
| - commentFormatting | ||
| - captLocal | ||
| - deprecatedComment | ||
| gosec: | ||
| includes: | ||
| - G101 | ||
| - G103 | ||
| - G104 | ||
| - G106 | ||
| - G108 | ||
| - G109 | ||
| - G110 | ||
| - G111 | ||
| - G201 | ||
| - G202 | ||
| - G203 | ||
| - G301 | ||
| - G302 | ||
| - G303 | ||
| - G304 | ||
| - G305 | ||
| - G306 | ||
| - G307 | ||
| - G403 | ||
| - G502 | ||
| - G503 | ||
| - G504 | ||
| - G601 | ||
| - G602 | ||
| govet: | ||
| enable: | ||
| - nilness | ||
| enable-all: false | ||
| revive: | ||
| rules: | ||
| - name: exported | ||
| arguments: | ||
| - checkPrivateReceivers | ||
| - sayRepetitiveInsteadOfStutters | ||
| severity: warning | ||
| disabled: false | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| rules: | ||
| - linters: | ||
| - forbidigo | ||
| path: management/cmd/root\.go | ||
| - linters: | ||
| - forbidigo | ||
| path: signal/cmd/root\.go | ||
| - linters: | ||
| - unused | ||
| path: sharedsock/filter\.go | ||
| - linters: | ||
| - unused | ||
| path: client/firewall/iptables/rule\.go | ||
| - linters: | ||
| - gosec | ||
| - mirror | ||
| path: test\.go | ||
| - linters: | ||
| - nilnil | ||
| path: mock\.go | ||
| - linters: | ||
| - staticcheck | ||
| text: grpc.DialContext is deprecated | ||
| - linters: | ||
| - staticcheck | ||
| text: grpc.WithBlock is deprecated | ||
| - linters: | ||
| - staticcheck | ||
| text: "QF1001" | ||
| - linters: | ||
| - staticcheck | ||
| text: "QF1008" | ||
| - linters: | ||
| - staticcheck | ||
| text: "QF1012" | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| issues: | ||
| # Maximum count of issues with the same text. | ||
| # Set to 0 to disable. | ||
| # Default: 3 | ||
| max-same-issues: 5 | ||
|
|
||
| exclude-rules: | ||
| # allow fmt | ||
| - path: management/cmd/root\.go | ||
| linters: forbidigo | ||
| - path: signal/cmd/root\.go | ||
| linters: forbidigo | ||
| - path: sharedsock/filter\.go | ||
| linters: | ||
| - unused | ||
| - path: client/firewall/iptables/rule\.go | ||
| linters: | ||
| - unused | ||
| - path: test\.go | ||
| linters: | ||
| - mirror | ||
| - gosec | ||
| - path: mock\.go | ||
| linters: | ||
| - nilnil | ||
| # Exclude specific deprecation warnings for grpc methods | ||
| - linters: | ||
| - staticcheck | ||
| text: "grpc.DialContext is deprecated" | ||
| - linters: | ||
| - staticcheck | ||
| text: "grpc.WithBlock is deprecated" | ||
| formatters: | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| //go:build pprof | ||
| // +build pprof | ||
|
|
||
| package cmd | ||
|
|
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.