Skip to content

build(deps): upgrade cobra v1.5.0 → v1.10.2 and viper v1.8.1 → v1.21.0#985

Merged
AlexStocks merged 1 commit into
apache:developfrom
Aias00:worktree-upgrade-cobra-viper
Jul 13, 2026
Merged

build(deps): upgrade cobra v1.5.0 → v1.10.2 and viper v1.8.1 → v1.21.0#985
AlexStocks merged 1 commit into
apache:developfrom
Aias00:worktree-upgrade-cobra-viper

Conversation

@Aias00

@Aias00 Aias00 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrade two significantly outdated dependencies:

Dependency Old New
github.com/spf13/cobra v1.5.0 (2022) v1.10.2
github.com/spf13/viper v1.8.1 (2021) v1.21.0

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

Verification

  • go build ./... — compiles without errors
  • go test ./... — all tests pass

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 17, 2026 03:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.sum entries 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-commenter

codecov-commenter commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.59%. Comparing base (0765f25) to head (476f193).

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           
Flag Coverage Δ
unittests 26.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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>
@Aias00
Aias00 force-pushed the worktree-upgrade-cobra-viper branch from b8771a0 to 476f193 Compare July 13, 2026 01:05
@sonarqubecloud

Copy link
Copy Markdown

@AlexStocks
AlexStocks merged commit 08c0720 into apache:develop Jul 13, 2026
6 checks passed
@AlexStocks

Copy link
Copy Markdown
Contributor

咱们项目有bot会自动检测版本升级,每月一次。所有后面不要把精力放在这个方面了。

@Aias00

Aias00 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

咱们项目有bot会自动检测版本升级,每月一次。所有后面不要把精力放在这个方面了。

👌

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.

4 participants