Browse Source

CI: use go 1.21.5 (#2640)

* use go 1.21.5
* Simpler go:build directives
mmetc 1 year ago
parent
commit
90d3a21853

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
.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

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
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

+ 1 - 2
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
 

+ 0 - 1
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
 

+ 0 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
pkg/acquisition/modules/file/tailline.go

@@ -1,4 +1,4 @@
-// +build linux freebsd netbsd openbsd solaris !windows
+//go:build !windows
 
 package fileacquisition
 

+ 1 - 1
pkg/acquisition/modules/file/tailline_windows.go

@@ -1,4 +1,4 @@
-// +build windows
+//go:build windows
 
 package fileacquisition
 

+ 0 - 1
pkg/acquisition/modules/wineventlog/wineventlog_test.go

@@ -1,5 +1,4 @@
 //go:build windows
-// +build windows
 
 package wineventlogacquisition
 

+ 1 - 1
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 }}"