Modernize dependencies and bump Go version to 1.21#98
Open
kiro-agent[bot] wants to merge 1 commit into
Open
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
github.com/pkg/errors— replaced all usages with Go's built-infmt.Errorf("...: %w", err)error wrapping (available since Go 1.13). This eliminates the only external non-x/dependency.golang.org/x/timefromv0.0.0-20200630173020(a 2020 pseudo-version) tov0.10.0ioutil.ReadAllwithio.ReadAll(available since Go 1.16)godirective from1.13to1.21Changes across 8 files
go.mod/go.sumpkg/errors, upgradedx/time, bumped Go versioncard.goerrors.Wrapf/Errorf→fmt.Errorfwith%wclient.goerrors.Wrapf→fmt.Errorfwith%w;ioutil.ReadAll→io.ReadAllwebhook.goerrors.Wrapf→fmt.Errorfwith%wtrello.goerrors.Wrapf→fmt.Errorfwith%wlist-duration.goerrors.Wrap→fmt.Errorfwith%wmember-duration.goerrors.Wrap→fmt.Errorfwith%wTesting
All existing tests pass (
go test ./...).