fix: --version reporta só o semver (release 0.19.4) - #24
Merged
Merged
Conversation
Symfony Console builds the long version by concatenating the application name, and the name here is 'ca' — so --version answered 'ca 0.19.3' instead of a semver. Override getLongVersion() to return the version alone. Nothing in the repository parsed the old format: the PHAR smoke test reads the last field of the line, and no test or workflow asserts the prefix.
heitoralthmann
force-pushed
the
chore/release-0.19.3
branch
from
August 28, 2026 20:36
5cb4b6e to
6a13e54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ca --versionrespondiaca 0.19.3. O Symfony Console monta a versão longaconcatenando o nome da aplicação com a versão, e o nome aqui é justamente
ca— então o prefixo não era decoração, era o nome do binário colado nonúmero. Passa a responder
0.19.4.Mudança
ContaAzulApplication::getLongVersion()sobrescrito para devolvergetVersion()puro. Uma linha, no lugar onde a versão já é resolvida.Compatibilidade
Nada no repositório dependia do formato antigo:
awk '{print $NF}'), entãovale para os dois formatos;
ca --versioncomo comando, nunca a saída literal.Release
Bump de patch junto, seguindo o ciclo do
CONTRIBUTING.md:CHANGELOG.md,VERSIONe odocs/commands.jsonregenerado. A tagv0.19.4fica paradepois do merge, apontando para o commit já em
main— que é o que orelease.ymlcobra.Verificação
--versione-V→0.19.4composer docs:check→ em diacomposer lint,composer stan→ limposcomposer test→ 525 testes, 1717 asserções (as 2 deprecations já existiam)