diff --git a/.github/workflows/bats-hub.yml b/.github/workflows/bats-hub.yml index e0b274f24..b9326b462 100644 --- a/.github/workflows/bats-hub.yml +++ b/.github/workflows/bats-hub.yml @@ -15,7 +15,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: "Build + tests" runs-on: ubuntu-latest diff --git a/.github/workflows/bats-mysql.yml b/.github/workflows/bats-mysql.yml index d72226658..e0ea4001f 100644 --- a/.github/workflows/bats-mysql.yml +++ b/.github/workflows/bats-mysql.yml @@ -14,7 +14,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: "Build + tests" runs-on: ubuntu-latest diff --git a/.github/workflows/bats-postgres.yml b/.github/workflows/bats-postgres.yml index 6076db4fd..af870ed83 100644 --- a/.github/workflows/bats-postgres.yml +++ b/.github/workflows/bats-postgres.yml @@ -10,7 +10,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: "Build + tests" runs-on: ubuntu-latest diff --git a/.github/workflows/bats-sqlite-coverage.yml b/.github/workflows/bats-sqlite-coverage.yml index 789c261f6..2f2b15e11 100644 --- a/.github/workflows/bats-sqlite-coverage.yml +++ b/.github/workflows/bats-sqlite-coverage.yml @@ -11,7 +11,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: "Build + tests" runs-on: ubuntu-latest diff --git a/.github/workflows/ci-windows-build-msi.yml b/.github/workflows/ci-windows-build-msi.yml index d4d3edacb..deff03063 100644 --- a/.github/workflows/ci-windows-build-msi.yml +++ b/.github/workflows/ci-windows-build-msi.yml @@ -23,7 +23,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: Build runs-on: windows-2019 diff --git a/.github/workflows/go-tests-windows.yml b/.github/workflows/go-tests-windows.yml index 868eae92a..6941a3497 100644 --- a/.github/workflows/go-tests-windows.yml +++ b/.github/workflows/go-tests-windows.yml @@ -22,7 +22,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: "Build + tests" runs-on: windows-2022 diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index b55431e14..78bed2a40 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -34,7 +34,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: "Build + tests" runs-on: ubuntu-latest diff --git a/.github/workflows/release_publish-package.yml b/.github/workflows/release_publish-package.yml index e45e882db..b2784d391 100644 --- a/.github/workflows/release_publish-package.yml +++ b/.github/workflows/release_publish-package.yml @@ -14,7 +14,7 @@ jobs: build: strategy: matrix: - go-version: ["1.21.4"] + go-version: ["1.21.5"] name: Build and upload binary package runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index a4cedfd5a..f04f6cb19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # vim: set ft=dockerfile: -ARG GOVERSION=1.21.4 +ARG GOVERSION=1.21.5 FROM golang:${GOVERSION}-alpine AS build diff --git a/Dockerfile.debian b/Dockerfile.debian index c3a29af7f..02e0d017d 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -1,5 +1,5 @@ # vim: set ft=dockerfile: -ARG GOVERSION=1.21.4 +ARG GOVERSION=1.21.5 FROM golang:${GOVERSION}-bookworm AS build diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f78443260..1b7cd4960 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,7 @@ stages: - task: GoTool@0 displayName: "Install Go 1.20" inputs: - version: '1.21.4' + version: '1.21.5' - pwsh: | choco install -y make diff --git a/cmd/crowdsec/run_in_svc.go b/cmd/crowdsec/run_in_svc.go index 8a2f98542..563f758c6 100644 --- a/cmd/crowdsec/run_in_svc.go +++ b/cmd/crowdsec/run_in_svc.go @@ -1,5 +1,4 @@ -//go:build linux || freebsd || netbsd || openbsd || solaris || !windows -// +build linux freebsd netbsd openbsd solaris !windows +//go:build !windows package main diff --git a/cmd/crowdsec/win_service.go b/cmd/crowdsec/win_service.go index ab9ecc815..ff28f22fa 100644 --- a/cmd/crowdsec/win_service.go +++ b/cmd/crowdsec/win_service.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package main diff --git a/cmd/crowdsec/win_service_install.go b/cmd/crowdsec/win_service_install.go index b497bc931..85b354202 100644 --- a/cmd/crowdsec/win_service_install.go +++ b/cmd/crowdsec/win_service_install.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package main diff --git a/cmd/crowdsec/win_service_manage.go b/cmd/crowdsec/win_service_manage.go index 4aa115273..4e31dc019 100644 --- a/cmd/crowdsec/win_service_manage.go +++ b/cmd/crowdsec/win_service_manage.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build windows +//go:build windows package main diff --git a/pkg/acquisition/modules/file/tailline.go b/pkg/acquisition/modules/file/tailline.go index ac377b663..0de95e4a9 100644 --- a/pkg/acquisition/modules/file/tailline.go +++ b/pkg/acquisition/modules/file/tailline.go @@ -1,4 +1,4 @@ -// +build linux freebsd netbsd openbsd solaris !windows +//go:build !windows package fileacquisition diff --git a/pkg/acquisition/modules/file/tailline_windows.go b/pkg/acquisition/modules/file/tailline_windows.go index 0c853c6e9..2c382b9b3 100644 --- a/pkg/acquisition/modules/file/tailline_windows.go +++ b/pkg/acquisition/modules/file/tailline_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows package fileacquisition diff --git a/pkg/acquisition/modules/wineventlog/wineventlog_test.go b/pkg/acquisition/modules/wineventlog/wineventlog_test.go index 54fddc3d8..20f8a5834 100644 --- a/pkg/acquisition/modules/wineventlog/wineventlog_test.go +++ b/pkg/acquisition/modules/wineventlog/wineventlog_test.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows package wineventlogacquisition diff --git a/test/ansible/vars/go.yml b/test/ansible/vars/go.yml index a735b9543..c84c8a345 100644 --- a/test/ansible/vars/go.yml +++ b/test/ansible/vars/go.yml @@ -1,5 +1,5 @@ # vim: set ft=yaml.ansible: --- -golang_version: "1.21.4" +golang_version: "1.21.5" golang_install_dir: "/opt/go/{{ golang_version }}"