Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-go@v7
with:
go-version: "1.26"
go-version: "1.27"

- uses: golangci/golangci-lint-action@v9
with:
Expand All @@ -32,7 +32,7 @@ jobs:

- uses: actions/setup-go@v7
with:
go-version: "1.26"
go-version: "1.27"

- run: |
go mod tidy -diff
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
go: ["1.25", "1.26"]
go: ["1.26", "1.27"]

steps:
- uses: actions/checkout@v7
Expand All @@ -25,7 +25,7 @@ jobs:

- run: make test-nodocker

- if: matrix.go == '1.26'
- if: matrix.go == '1.27'
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BASE_IMAGE = golang:1.26-alpine3.24
BASE_IMAGE = golang:1.27-alpine3.24
LINT_IMAGE = golangci/golangci-lint:v2.13.1

.PHONY: $(shell ls)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Features:

## Installation

1. Install Go ≥ 1.25.
1. Install Go ≥ 1.26.

2. Create an empty folder, open a terminal in it and initialize the Go modules system:

Expand Down
3 changes: 1 addition & 2 deletions channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ func (ch *Channel) runReader() error {
var err error
fr, err = ch.frameReadWriter.Read()
if err != nil {
var eerr frame.ReadError
if errors.As(err, &eerr) {
if _, ok := errors.AsType[frame.ReadError](err); ok {
ch.node.pushEvent(&EventParseError{err, ch})
continue
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bluenviron/gomavlib/v4

go 1.25.0
go 1.26.0

require (
github.com/alecthomas/kong v1.16.1
Expand Down
4 changes: 2 additions & 2 deletions pkg/frame/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const (
func hasStringFields(msg message.Message) bool {
typ := reflect.TypeOf(msg).Elem()

for i := range typ.NumField() {
if typ.Field(i).Type == reflect.TypeFor[string]() {
for field := range typ.Fields() {
if field.Type == reflect.TypeFor[string]() {
return true
}
}
Expand Down