Skip to content

Commit 13b8e80

Browse files
authored
Upgrade go-serial library (fix high CPU load with some CH340 usb-2-serial converters) (#114)
* Upgrade go-serial library This upgrade should fix high CPU load with the CH340. #112 * Tidy up deps
1 parent 1a12037 commit 13b8e80

File tree

9 files changed

+36
-97
lines changed

9 files changed

+36
-97
lines changed

.github/workflows/check-go-dependencies-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Go Dependencies
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.18.5"
6+
GO_VERSION: "1.24"
77

88
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
99
on:

.github/workflows/check-go-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Go
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.18.5"
6+
GO_VERSION: "1.24"
77

88
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
99
on:
@@ -125,7 +125,7 @@ jobs:
125125
- name: Install golangci-lint
126126
uses: golangci/golangci-lint-action@v3
127127
with:
128-
version: v1.54
128+
version: v1.64.7
129129

130130
- name: Check style
131131
env:

.licenses/serial-monitor/go/go.bug.st/serial.dep.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: go.bug.st/serial
3-
version: v1.6.2
3+
version: v1.6.3
44
type: go
55
summary: Package serial is a cross-platform serial library for the go language.
66
homepage: https://pkg.go.dev/go.bug.st/serial
@@ -9,7 +9,7 @@ licenses:
99
- sources: LICENSE
1010
text: |2+
1111
12-
Copyright (c) 2014-2023, Cristian Maglie.
12+
Copyright (c) 2014-2024, Cristian Maglie.
1313
All rights reserved.
1414
1515
Redistribution and use in source and binary forms, with or without
@@ -43,7 +43,7 @@ licenses:
4343
4444
- sources: README.md
4545
text: |-
46-
The software is release under a [BSD 3-clause license]
46+
This software is released under the [BSD 3-clause license].
4747
4848
[contributors]: https://github.com/bugst/go-serial/graphs/contributors
4949
[BSD 3-clause license]: https://github.com/bugst/go-serial/blob/master/LICENSE

.licenses/serial-monitor/go/go.bug.st/serial/unixutils.dep.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: go.bug.st/serial/unixutils
3-
version: v1.6.2
3+
version: v1.6.3
44
type: go
55
summary:
66
homepage: https://pkg.go.dev/go.bug.st/serial/unixutils
77
license: bsd-3-clause
88
licenses:
9-
- sources: [email protected].2/LICENSE
9+
- sources: [email protected].3/LICENSE
1010
text: |2+
1111
12-
Copyright (c) 2014-2023, Cristian Maglie.
12+
Copyright (c) 2014-2024, Cristian Maglie.
1313
All rights reserved.
1414
1515
Redistribution and use in source and binary forms, with or without
@@ -41,9 +41,9 @@ licenses:
4141
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
4242
POSSIBILITY OF SUCH DAMAGE.
4343
44-
- sources: [email protected].2/README.md
44+
- sources: [email protected].3/README.md
4545
text: |-
46-
The software is release under a [BSD 3-clause license]
46+
This software is released under the [BSD 3-clause license].
4747
4848
[contributors]: https://github.com/bugst/go-serial/graphs/contributors
4949
[BSD 3-clause license]: https://github.com/bugst/go-serial/blob/master/LICENSE

.licenses/serial-monitor/go/golang.org/x/exp/constraints.dep.yml

-63
This file was deleted.

.licenses/serial-monitor/go/golang.org/x/exp/slices.dep.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: golang.org/x/exp/slices
3-
version: v0.0.0-20240213143201-ec583247a57a
3+
version: v0.0.0-20250305212735-054e65f0b394
44
type: go
55
summary: Package slices defines various functions useful with slices of any type.
66
homepage: https://pkg.go.dev/golang.org/x/exp/slices
77
license: bsd-3-clause
88
licenses:
9-
- sources: [email protected]20240213143201-ec583247a57a/LICENSE
9+
- sources: [email protected]20250305212735-054e65f0b394/LICENSE
1010
text: |
11-
Copyright (c) 2009 The Go Authors. All rights reserved.
11+
Copyright 2009 The Go Authors.
1212
1313
Redistribution and use in source and binary forms, with or without
1414
modification, are permitted provided that the following conditions are
@@ -20,7 +20,7 @@ licenses:
2020
copyright notice, this list of conditions and the following disclaimer
2121
in the documentation and/or other materials provided with the
2222
distribution.
23-
* Neither the name of Google Inc. nor the names of its
23+
* Neither the name of Google LLC nor the names of its
2424
contributors may be used to endorse or promote products derived from
2525
this software without specific prior written permission.
2626
@@ -35,7 +35,7 @@ licenses:
3535
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3636
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3737
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38-
- sources: [email protected]20240213143201-ec583247a57a/PATENTS
38+
- sources: [email protected]20250305212735-054e65f0b394/PATENTS
3939
text: |
4040
Additional IP Rights Grant (Patents)
4141

.licenses/serial-monitor/go/golang.org/x/sys/unix.dep.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: golang.org/x/sys/unix
3-
version: v0.17.0
3+
version: v0.31.0
44
type: go
55
summary: Package unix contains an interface to the low-level operating system primitives.
66
homepage: https://pkg.go.dev/golang.org/x/sys/unix
77
license: bsd-3-clause
88
licenses:
9-
- sources: sys@v0.17.0/LICENSE
9+
- sources: sys@v0.31.0/LICENSE
1010
text: |
11-
Copyright (c) 2009 The Go Authors. All rights reserved.
11+
Copyright 2009 The Go Authors.
1212
1313
Redistribution and use in source and binary forms, with or without
1414
modification, are permitted provided that the following conditions are
@@ -20,7 +20,7 @@ licenses:
2020
copyright notice, this list of conditions and the following disclaimer
2121
in the documentation and/or other materials provided with the
2222
distribution.
23-
* Neither the name of Google Inc. nor the names of its
23+
* Neither the name of Google LLC nor the names of its
2424
contributors may be used to endorse or promote products derived from
2525
this software without specific prior written permission.
2626
@@ -35,7 +35,7 @@ licenses:
3535
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3636
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3737
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38-
- sources: sys@v0.17.0/PATENTS
38+
- sources: sys@v0.31.0/PATENTS
3939
text: |
4040
Additional IP Rights Grant (Patents)
4141

go.mod

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
module github.com/arduino/serial-monitor
22

3-
go 1.18
3+
go 1.24.1
44

55
require (
66
github.com/arduino/pluggable-monitor-protocol-handler v0.9.2
7-
go.bug.st/serial v1.6.2
8-
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a
7+
go.bug.st/serial v1.6.3
8+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
99
)
1010

1111
require (
1212
github.com/creack/goselect v0.1.2 // indirect
13-
github.com/davecgh/go-spew v1.1.1 // indirect
1413
github.com/hashicorp/errwrap v1.1.0 // indirect
1514
github.com/hashicorp/go-multierror v1.1.1 // indirect
16-
golang.org/x/sys v0.17.0 // indirect
15+
golang.org/x/sys v0.31.0 // indirect
1716
)

go.sum

+11-8
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv
1010
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
1111
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
1212
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
13-
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
14-
go.bug.st/serial v1.6.2 h1:kn9LRX3sdm+WxWKufMlIRndwGfPWsH1/9lCWXQCasq8=
15-
go.bug.st/serial v1.6.2/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE=
16-
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a h1:HinSgX1tJRX3KsL//Gxynpw5CTOAIPhgL4W8PNiIpVE=
17-
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc=
18-
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
19-
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
20-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
13+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
14+
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
15+
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
16+
go.bug.st/serial v1.6.3 h1:S3OG1bH+IDyokVndKrzwxI9ywiGBd8sWOn08dzSqEQI=
17+
go.bug.st/serial v1.6.3/go.mod h1:nofMJxTeNVny/m6+KaafC6vJGj3miwQZ6vW4BZUGJPI=
18+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=
19+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM=
20+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
21+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
22+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
23+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)