Skip to content

fix: remove hardcoded version from composer.json#94

Merged
tdwesten merged 1 commit intotdwesten:mainfrom
kgirzadas:fix/remove-hardcoded-version
Mar 31, 2026
Merged

fix: remove hardcoded version from composer.json#94
tdwesten merged 1 commit intotdwesten:mainfrom
kgirzadas:fix/remove-hardcoded-version

Conversation

@kgirzadas
Copy link
Copy Markdown
Contributor

Problem

The composer.json file had a hardcoded "version": "v3.0.0" field.
When Packagist crawls a git tag (e.g. v3.0.1), it reads composer.json
at that tag. If the declared version doesn't match the tag name, Packagist
either skips the tag or registers it under the wrong version — which is why
releases v3.0.1–v3.0.5 don't appear on Packagist.

Fix

Removed the "version" field. Composer/Packagist automatically derives
the version from the git tag name — this field should never be hardcoded
in a library's composer.json.

Impact

  • Releases v3.0.1–v3.0.5 (and all future tags) will be correctly indexed
    by Packagist and installable via Composer.
  • No functional code changes.

@tdwesten tdwesten merged commit 27f1059 into tdwesten:main Mar 31, 2026
5 checks passed
@tdwesten
Copy link
Copy Markdown
Owner

Oh, thanks! I have learned something today. Thanks, @kgirzadas!

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.

2 participants