Skip to content

refactor: remove testify and transitive dependencies#216

Merged
cmaglie merged 2 commits intobugst:masterfrom
a-h:remove_dependencies
Apr 30, 2026
Merged

refactor: remove testify and transitive dependencies#216
cmaglie merged 2 commits intobugst:masterfrom
a-h:remove_dependencies

Conversation

@a-h
Copy link
Copy Markdown
Contributor

@a-h a-h commented Apr 29, 2026

Currently, go-serial has the following dependencies:

module go.bug.st/serial

go 1.17

require (
	github.com/creack/goselect v0.1.2
	github.com/stretchr/testify v1.8.4
	golang.org/x/sys v0.19.0
)

require (
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/pmezard/go-difflib v1.0.0 // indirect
	gopkg.in/yaml.v3 v3.0.1 // indirect
)

If #149 is merged, goselect will disappear.

The project only uses a couple of functions from testify which are easy to refactor out to remove the other dependencies, leaving just golang.org/x/sys as a dependency, which would reduce the supply chain attack surface of the project.

@cmaglie cmaglie merged commit d0b372e into bugst:master Apr 30, 2026
@a-h a-h deleted the remove_dependencies branch April 30, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants