Skip to content

Modernize dependencies and bump Go version to 1.21#98

Open
kiro-agent[bot] wants to merge 1 commit into
mainfrom
modernize-deps-and-go-version
Open

Modernize dependencies and bump Go version to 1.21#98
kiro-agent[bot] wants to merge 1 commit into
mainfrom
modernize-deps-and-go-version

Conversation

@kiro-agent

@kiro-agent kiro-agent Bot commented May 3, 2026

Copy link
Copy Markdown

This pull request was generated by @kiro-agent 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


Summary

This PR modernizes the project's dependencies and Go version:

  • Remove github.com/pkg/errors — replaced all usages with Go's built-in fmt.Errorf("...: %w", err) error wrapping (available since Go 1.13). This eliminates the only external non-x/ dependency.
  • Upgrade golang.org/x/time from v0.0.0-20200630173020 (a 2020 pseudo-version) to v0.10.0
  • Replace deprecated ioutil.ReadAll with io.ReadAll (available since Go 1.16)
  • Bump go directive from 1.13 to 1.21

Changes across 8 files

File Change
go.mod / go.sum Removed pkg/errors, upgraded x/time, bumped Go version
card.go errors.Wrapf/Errorffmt.Errorf with %w
client.go errors.Wrapffmt.Errorf with %w; ioutil.ReadAllio.ReadAll
webhook.go errors.Wrapffmt.Errorf with %w
trello.go errors.Wrapffmt.Errorf with %w
list-duration.go errors.Wrapfmt.Errorf with %w
member-duration.go errors.Wrapfmt.Errorf with %w

Testing

All existing tests pass (go test ./...).

- Remove github.com/pkg/errors dependency entirely; replace with
  stdlib fmt.Errorf("...: %w", err) and errors package (Go 1.13+)
- Upgrade golang.org/x/time from v0.0.0-20200630173020 to v0.10.0
- Replace deprecated ioutil.ReadAll with io.ReadAll (Go 1.16+)
- Bump go directive from 1.13 to 1.21

All existing tests continue to pass.

Co-authored-by: Aaron Longwell <27492+adlio@users.noreply.github.com>
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.

1 participant