Skip to content

Commit

Permalink
CI: use go 1.21.5 (#2640)
Browse files Browse the repository at this point in the history
* use go 1.21.5
* Simpler go:build directives
  • Loading branch information
mmetc authored Dec 6, 2023
1 parent 1ab4487 commit 90d3a21
Show file tree
Hide file tree
Showing 19 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bats-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bats-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bats-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bats-sqlite-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows-build-msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
build:
strategy:
matrix:
go-version: ["1.21.4"]
go-version: ["1.21.5"]

name: Build
runs-on: windows-2019
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vim: set ft=dockerfile:
ARG GOVERSION=1.21.4
ARG GOVERSION=1.21.5

FROM golang:${GOVERSION}-alpine AS build

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vim: set ft=dockerfile:
ARG GOVERSION=1.21.4
ARG GOVERSION=1.21.5

FROM golang:${GOVERSION}-bookworm AS build

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions cmd/crowdsec/run_in_svc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || freebsd || netbsd || openbsd || solaris || !windows
// +build linux freebsd netbsd openbsd solaris !windows
//go:build !windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/crowdsec/win_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/crowdsec/win_service_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package main

Expand Down
2 changes: 1 addition & 1 deletion cmd/crowdsec/win_service_manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pkg/acquisition/modules/file/tailline.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux freebsd netbsd openbsd solaris !windows
//go:build !windows

package fileacquisition

Expand Down
2 changes: 1 addition & 1 deletion pkg/acquisition/modules/file/tailline_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package fileacquisition

Expand Down
1 change: 0 additions & 1 deletion pkg/acquisition/modules/wineventlog/wineventlog_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package wineventlogacquisition

Expand Down
2 changes: 1 addition & 1 deletion test/ansible/vars/go.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 90d3a21

Please sign in to comment.