fix: restore i18n-enabled Cobra dependency #964
Open
ChasquiLabo
wants to merge 1 commits from
escuela-comun/abra:fix/918-cobra-i18n into main
pull from: escuela-comun/abra:fix/918-cobra-i18n
merge into: :main
:main
:renovate/golang-1.27
:renovate/github.com-charmbracelet-lipgloss-2.x
:fix/492
:renovate/github.com-charmbracelet-bubbletea-2.x
:renovate/codespell-2.x
:renovate/tonistiigi-xx-1.x
:renovate/github.com-charmbracelet-log-2.x
:renovate/alpine-3.x
:feat/container-labels
:chore-deps
:fix/deps
:fix/613
No Reviewers
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze (Born Deleuze)
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
hex (Josh Dukes)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1 (p4u1)
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting (stevensting)
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#964
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Restores the internationalization support for help flags originally implemented in PR #786.
That PR introduced the i18n-enabled Cobra dependency (
v1.10.2-i18n), allowing translated help flags such as--ayudato work correctly alongside--helpand-h.However, the subsequent dependency update in PR #823 replaced
v1.10.2-i18nwithv1.10.2, unintentionally removing the original fix and reintroducing theunable to redefine 'h' shorthandpanic.This PR restores the original dependency to resolve #918 without modifying Abra's command implementation.
Changes
github.com/decentral1se/cobra v1.10.2-i18ningo.mod.go.sum.Testing
Tested against the current Abra
mainbranch on Ubuntu 26.04, using Go 1.27.4.v1.10.2.v1.10.2-i18nresolves the issue.--help,-h, and--ayudawork correctly in Spanish, including application subcommands.go build -mod=mod.Note: The
vendor/directory has not been updated and may require synchronization for default vendor-mode builds.AI assistance
This regression was investigated and the fix developed with assistance from ChatGPT (LLM). All changes were manually reviewed and tested in a dedicated development environment.
Fixes #918.
I think we'll need to wait for toolshed/organising#678 before making a decision here. If people want to push that process forward, please speak to federation members and help out! Thank you for disclosing how the change set was created!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.