build(deps): upgrade cobra v1.5.0 → v1.10.2 and viper v1.8.1 → v1.21.0#985
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates Go module dependencies and tidies module metadata to align go.mod and go.sum with the current dependency graph.
Changes:
- Bumped several direct dependencies (e.g.,
fsnotify,spf13/cast,spf13/cobra,spf13/viper) to newer versions. - Refreshed indirect dependencies (adds/removes) as part of module graph updates.
- Regenerated
go.sumentries to match updated requirements.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| go.mod | Updates direct and indirect dependency requirements to newer versions. |
| go.sum | Removes obsolete checksums and adds new ones corresponding to updated modules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #985 +/- ##
========================================
Coverage 26.59% 26.59%
========================================
Files 274 274
Lines 22002 22002
========================================
Hits 5852 5852
Misses 15541 15541
Partials 609 609
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Upgrade spf13/cobra from v1.5.0 to v1.10.2 and spf13/viper from v1.8.1 to v1.21.0. These were significantly outdated (2021-2022 versions). Notable transitive dependency changes: - spf13/pflag v1.0.5 → v1.0.10 - spf13/afero v1.10.0 → v1.15.0 - spf13/cast v1.7.1 → v1.10.0 - fsnotify/fsnotify v1.6.0 → v1.9.0 - inconshreveable/mousetrap v1.0.0 → v1.1.0 - pelletier/go-toml/v2 v2.2.2 → v2.2.4 - subosito/gotenv v1.2.0 → v1.6.0 - Added: go-viper/mapstructure/v2 v2.4.0 - Added: sagikazarmark/locafero v0.11.0 - Added: sourcegraph/conc v0.3.1 All tests pass. Build verified. Co-Authored-By: Claude <noreply@anthropic.com>
b8771a0 to
476f193
Compare
|
|
咱们项目有bot会自动检测版本升级,每月一次。所有后面不要把精力放在这个方面了。 |
👌 |



Summary
Upgrade two significantly outdated dependencies:
github.com/spf13/cobragithub.com/spf13/viperTransitive dependency changes
spf13/pflagv1.0.5 → v1.0.10spf13/aferov1.10.0 → v1.15.0spf13/castv1.7.1 → v1.10.0fsnotify/fsnotifyv1.6.0 → v1.9.0inconshreveable/mousetrapv1.0.0 → v1.1.0pelletier/go-toml/v2v2.2.2 → v2.2.4subosito/gotenvv1.2.0 → v1.6.0go-viper/mapstructure/v2v2.4.0sagikazarmark/locaferov0.11.0sourcegraph/concv0.3.1Verification
go build ./...— compiles without errorsgo test ./...— all tests pass🤖 Generated with Claude Code