Skip to content

Commit

Permalink
Update golang varsion
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Feb 3, 2024
1 parent 11c04d3 commit 2c827ea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.19.2
go-version: 1.21.6

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -27,7 +27,7 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.50.1
version: v1.55.2

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ linters:
- dupword
- gomnd
- wrapcheck
- exhaustruct # mad linter
- depguard

issues:
exclude:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/gorcon/rcon

go 1.19
go 1.21
2 changes: 1 addition & 1 deletion rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func Dial(address string, password string, options ...Option) (*Conn, error) {
if err := client.auth(password); err != nil {
// Failed to auth conn with the server.
if err2 := client.Close(); err2 != nil {
return &client, fmt.Errorf("%w: %v. Previous error: %v", ErrMultiErrorOccurred, err2, err)
return &client, fmt.Errorf("%w: %s. Previous error: %s", ErrMultiErrorOccurred, err2.Error(), err.Error())
}

return &client, fmt.Errorf("rcon: %w", err)
Expand Down

0 comments on commit 2c827ea

Please sign in to comment.