Skip to content

Update packages for error handling and logging#234

Merged
thelovekesh merged 11 commits into
mainfrom
remove/obsolete-packages
May 26, 2026
Merged

Update packages for error handling and logging#234
thelovekesh merged 11 commits into
mainfrom
remove/obsolete-packages

Conversation

@thelovekesh
Copy link
Copy Markdown
Collaborator

  • Remove github.com/pkg/errors
  • Replaced logrus with zerolog
  • Port sortorder to pkg

@github-actions
Copy link
Copy Markdown

📦 wpm cli builds 📦

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces github.com/sirupsen/logrus with github.com/rs/zerolog for logging, migrates error handling from github.com/pkg/errors to the standard library errors and fmt.Errorf, and vendors the sortorder package. It also removes the local timezone header resolution dependency. However, multiple critical compilation errors were identified across cmd/wpm/wpm.go and pkg/pm/installer/installer.go due to the use of a non-existent errors.AsType function. These must be updated to use the standard errors.As function.

Comment thread cmd/wpm/wpm.go
Comment thread cmd/wpm/wpm.go
Comment thread cmd/wpm/wpm.go
Comment thread pkg/pm/installer/installer.go
Comment thread pkg/pm/installer/installer.go
Comment thread pkg/pm/installer/installer.go
@thelovekesh thelovekesh merged commit 2cab2b3 into main May 26, 2026
17 checks passed
@thelovekesh thelovekesh deleted the remove/obsolete-packages branch May 26, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant