Skip to content

Commit ab158e1

Browse files
committed
Upgrade go-serial library
This upgrade should fix high CPU load with the CH340. #112
1 parent 1a12037 commit ab158e1

File tree

7 files changed

+30
-24
lines changed

7 files changed

+30
-24
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-0.20250317162434-3449d2e7f6e8
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-0.20250317162434-3449d2e7f6e8
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: serial@v1.6.2/LICENSE
9+
- sources: serial@v1.6.3-0.20250317162434-3449d2e7f6e8/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: serial@v1.6.2/README.md
44+
- sources: serial@v1.6.3-0.20250317162434-3449d2e7f6e8/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/sys/unix.dep.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
name: golang.org/x/sys/unix
3-
version: v0.17.0
3+
version: v0.19.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.19.0/LICENSE
1010
text: |
1111
Copyright (c) 2009 The Go Authors. All rights reserved.
1212
@@ -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.19.0/PATENTS
3939
text: |
4040
Additional IP Rights Grant (Patents)
4141

go.mod

+3-4
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
7+
go.bug.st/serial v1.6.3
88
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a
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.19.0 // indirect
1716
)

go.sum

+13-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ 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=
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=
1618
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a h1:HinSgX1tJRX3KsL//Gxynpw5CTOAIPhgL4W8PNiIpVE=
1719
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=
20+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=
21+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM=
22+
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
23+
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
24+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
25+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
26+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
27+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)