Skip to content

Commit e614de4

Browse files
authored
Merge branch 'master' into update-actions-ubuntu-latest
2 parents f51eda2 + 38e9593 commit e614de4

10 files changed

Lines changed: 25 additions & 25 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/setup-go@v5
2424
with:
25-
go-version: '1.21.13'
25+
go-version: '1.24.11'
2626
- uses: actions/checkout@v4.1.3
2727
#- name: download libraries
2828
# run: go mod download
@@ -32,7 +32,7 @@ jobs:
3232
# Caching conflicts happen in GHA, so just disable for now
3333
skip-cache: true
3434
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
35-
version: v1.59.1
35+
version: v1.64.2
3636
unit-tests:
3737
name: Unit tests
3838
runs-on: ubuntu-latest
@@ -77,7 +77,7 @@ jobs:
7777
- uses: actions/checkout@v4.1.3
7878
- uses: actions/setup-go@v5
7979
with:
80-
go-version: '1.21.13'
80+
go-version: '1.24.11'
8181
- name: Verify image builds
8282
run: |
8383
docker build --tag infrawatch/sg-core:latest --file build/Dockerfile .

.golangci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ linters:
3737
- dupl
3838
- errcheck
3939
# - exhaustive
40-
- exportloopref
40+
- copyloopvar
4141
# - gochecknoinits
4242
- goconst
4343
- gocritic
@@ -61,5 +61,5 @@ linters:
6161
- unconvert
6262
# NOTE: not all application plugins use ability to emit internal events through
6363
# passed bus function in it's constructor.
64-
#- unparam
64+
# - unparam
6565
# - whitespace

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY . $D/
1010
COPY build/repos/opstools.repo /etc/yum.repos.d/CentOS-OpsTools.repo
1111

1212
RUN dnf install golang git qpid-proton-c-devel -y --setopt=tsflags=nodocs
13-
RUN go install golang.org/dl/go1.21.13@latest && /go/bin/go1.21.13 download && PRODUCTION_BUILD=false CONTAINER_BUILD=true GOCMD=/go/bin/go1.21.13 ./build.sh
13+
RUN go install golang.org/dl/go1.24.11@latest && /go/bin/go1.24.11 download && PRODUCTION_BUILD=false CONTAINER_BUILD=true GOCMD=/go/bin/go1.24.11 ./build.sh
1414

1515
# --- end build, create smart gateway layer ---
1616
FROM registry.access.redhat.com/ubi9-minimal:latest

ci/integration/logging/run_sg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ dnf install -y git golang gcc make qpid-proton-c-devel
1212
export GOBIN=$GOPATH/bin
1313
export PATH=$PATH:$GOBIN
1414

15-
go install golang.org/dl/go1.21.13@latest
16-
go1.21.13 download
15+
go install golang.org/dl/go1.24.11@latest
16+
go1.24.11 download
1717

1818
# install sg-core and start sg-core
1919
mkdir -p /usr/lib64/sg-core
20-
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.21.13 BUILD_ARGS=-buildvcs=false ./build.sh
20+
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.24.11 BUILD_ARGS=-buildvcs=false ./build.sh
2121

2222
./sg-core -config ./ci/integration/logging/sg_config.yaml

ci/integration/metrics/ceilometer/bridge/run_sg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ dnf install -y git golang gcc make qpid-proton-c-devel
1212
export GOBIN=$GOPATH/bin
1313
export PATH=$PATH:$GOBIN
1414

15-
go install golang.org/dl/go1.21.13@latest
16-
go1.21.13 download
15+
go install golang.org/dl/go1.24.11@latest
16+
go1.24.11 download
1717

1818
# install sg-core and start sg-core
1919
mkdir -p /usr/lib64/sg-core
20-
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.21.13 BUILD_ARGS=-buildvcs=false ./build.sh
20+
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.24.11 BUILD_ARGS=-buildvcs=false ./build.sh
2121

2222
./sg-core -config ./ci/integration/metrics/ceilometer/bridge/sg_config.yaml

ci/integration/metrics/ceilometer/tcp/run_sg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ dnf install -y git golang gcc make qpid-proton-c-devel
1313
export GOBIN=$GOPATH/bin
1414
export PATH=$PATH:$GOBIN
1515

16-
go install golang.org/dl/go1.21.13@latest
17-
go1.21.13 download
16+
go install golang.org/dl/go1.24.11@latest
17+
go1.24.11 download
1818

1919
# install sg-core and start sg-core
2020
mkdir -p /usr/lib64/sg-core
21-
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.21.13 BUILD_ARGS=-buildvcs=false ./build.sh
21+
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.24.11 BUILD_ARGS=-buildvcs=false ./build.sh
2222

2323
./sg-core -config ./ci/integration/metrics/ceilometer/tcp/sg_config.yaml

ci/integration/metrics/collectd/run_sg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ dnf install -y git golang gcc make qpid-proton-c-devel
1212
export GOBIN=$GOPATH/bin
1313
export PATH=$PATH:$GOBIN
1414

15-
go install golang.org/dl/go1.21.13@latest
16-
go1.21.13 download
15+
go install golang.org/dl/go1.24.11@latest
16+
go1.24.11 download
1717

1818
# install sg-core and start sg-core
1919
mkdir -p /usr/lib64/sg-core
20-
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.21.13 BUILD_ARGS=-buildvcs=false ./build.sh
20+
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.24.11 BUILD_ARGS=-buildvcs=false ./build.sh
2121

2222
./sg-core -config ./ci/integration/metrics/collectd/sg_config.yaml

ci/unit/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ yum install -y git golang gcc make glibc-langpack-en qpid-proton-c-devel
1313
export GOBIN=$GOPATH/bin
1414
export PATH=$PATH:$GOBIN
1515

16-
go install golang.org/dl/go1.21.13@latest
17-
go1.21.13 download
16+
go install golang.org/dl/go1.24.11@latest
17+
go1.24.11 download
1818

1919

20-
go1.21.13 test -v -coverprofile=profile.cov ./...
20+
go1.24.11 test -v -coverprofile=profile.cov ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/infrawatch/sg-core
22

3-
go 1.21.13
3+
go 1.24.11
44

55
require (
66
collectd.org v0.5.0

plugins/transport/socket/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,15 @@ func (s *Socket) Run(ctx context.Context, w transport.WriteFn, done chan bool) {
263263
case udp:
264264
pc = s.initUDPSocket()
265265
if pc == (*net.UDPConn)(nil) {
266-
s.logger.Errorf(nil, "Failed to initialize socket transport plugin with type: "+s.conf.Type)
266+
s.logger.Errorf(nil, "Failed to initialize socket transport plugin with type: %s", s.conf.Type)
267267
return
268268
}
269269
go s.ReceiveData(maxBufferSize, done, pc, w)
270270

271271
case tcp:
272272
TCPSocket := s.initTCPSocket()
273273
if TCPSocket == nil {
274-
s.logger.Errorf(nil, "Failed to initialize socket transport plugin with type: "+s.conf.Type)
274+
s.logger.Errorf(nil, "Failed to initialize socket transport plugin with type: %s", s.conf.Type)
275275
return
276276
}
277277
go func() {
@@ -294,7 +294,7 @@ func (s *Socket) Run(ctx context.Context, w transport.WriteFn, done chan bool) {
294294
default:
295295
pc = s.initUnixSocket()
296296
if pc == (*net.UnixConn)(nil) {
297-
s.logger.Errorf(nil, "Failed to initialize socket transport plugin with type: "+s.conf.Type)
297+
s.logger.Errorf(nil, "Failed to initialize socket transport plugin with type: %s", s.conf.Type)
298298
return
299299
}
300300
go s.ReceiveData(maxBufferSize, done, pc, w)

0 commit comments

Comments
 (0)