diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 73116460c67..90dffd75102 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -28,7 +28,7 @@ jobs: uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.47.2 + version: v1.51.2 # Give the job more time to execute. # Regarding `--whole-files`, the linter is supposed to support linting of changed a patch only but, diff --git a/.go-version b/.go-version index 0150af135c6..83d5e73f00e 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.18.10 +1.19.5 diff --git a/.golangci.yml b/.golangci.yml index 7bc5e84c9fe..577874e4c96 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -101,7 +101,7 @@ linters-settings: gosimple: # Select the Go version to target. The default is '1.13'. - go: "1.18.10" + go: "1.19.5" nakedret: # make an issue if func has more lines of code than this setting and it has naked returns; default is 30 @@ -121,17 +121,17 @@ linters-settings: staticcheck: # Select the Go version to target. The default is '1.13'. - go: "1.18.10" + go: "1.19.5" checks: ["all"] stylecheck: # Select the Go version to target. The default is '1.13'. - go: "1.18.10" + go: "1.19.5" checks: ["all"] unused: # Select the Go version to target. The default is '1.13'. - go: "1.18.10" + go: "1.19.5" gosec: excludes: diff --git a/Dockerfile b/Dockerfile index 483bfcd596c..353eb7d9197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.18.10 +ARG GO_VERSION=1.19.5 FROM circleci/golang:${GO_VERSION} diff --git a/go.mod b/go.mod index 07e6f8af8a6..38ae2966266 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/elastic/elastic-agent -go 1.18 +go 1.19 require ( github.com/Microsoft/go-winio v0.5.2 diff --git a/version/docs/version.asciidoc b/version/docs/version.asciidoc index 5bb1deb3f59..059be1ced7b 100644 --- a/version/docs/version.asciidoc +++ b/version/docs/version.asciidoc @@ -3,7 +3,7 @@ // FIXME: once elastic.co docs have been switched over to use `main`, remove // the `doc-site-branch` line below as well as any references to it in the code. :doc-site-branch: master -:go-version: 1.18.10 +:go-version: 1.19.5 :release-state: unreleased :python: 3.7 :docker: 1.12