Skip to content

Fix/refactor version sub command to --version/-v pararms#23

Merged
hi-lei merged 9 commits intomainfrom
fix/gloable-version-params
Apr 8, 2026
Merged

Fix/refactor version sub command to --version/-v pararms#23
hi-lei merged 9 commits intomainfrom
fix/gloable-version-params

Conversation

@hi-lei
Copy link
Copy Markdown
Collaborator

@hi-lei hi-lei commented Apr 8, 2026

Description

Type of Change

  • feat: New feature
  • fix: Bug fix
  • refactor: Code refactoring
  • docs: Documentation
  • test: Tests
  • chore: Maintenance
  • ci: CI/CD changes

Checklist

  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally (make test)
  • Pre-commit checks pass (make pre-commit)
  • My changes generate no new warnings or errors

Related Issues

Additional Context

Note: Use conventional commit messages (e.g. feat:, fix:, chore:).
The CHANGELOG is auto-generated from conventional commit messages at release time.

hi-lei and others added 9 commits April 8, 2026 11:27
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ommand

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Use manual PersistentFlag instead of cobra's cmd.Version to avoid
  flag type conflict
- Rename update command's --version flag to --target
- Add ErrVersionRequested sentinel for clean exit handling
- Remove stale "version" from hidden flags list

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolves GO-2026-4947, GO-2026-4946, GO-2026-4870, GO-2026-4869
(crypto/x509, crypto/tls, archive/tar vulnerabilities).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
go.mod requires >= 1.25.9 for stdlib security fixes.
The previous "1.25" resolved to 1.25.8 which is too old.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hi-lei hi-lei merged commit 2fbf4a0 into main Apr 8, 2026
13 checks passed
@hi-lei hi-lei deleted the fix/gloable-version-params branch April 8, 2026 09:39
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