clickstorm / cs_seo

[clickstorm] SEO
Other
33 stars 49 forks source link

Composer require throws error, Version not available (only dev-*) #306

Closed Kayu84 closed 1 year ago

Kayu84 commented 1 year ago

Using Composer 2.2.4 composer show -a clickstorm/cs-seo

name     : clickstorm/cs-seo
descrip. : [clickstorm] SEO - Extension for TYPO3. Enables important onpage features for search engine optimization (SEO). Expands the page settings and any desired records for example with a preview for Google search results (SERP) Structured Data (JSON-LD) and a Focus Keyword. Restrictive hreflang and canonical tags. Modules for metadata of records and alternative texts of images. Further features are shown in the extension manual.
keywords : extension, seo, typo3, clickstorm
versions : dev-master, dev-6x, dev-TYPO3-12, dev-3x, dev-2x, dev-1x, dev-5x, dev-4x
type     : typo3-cms-extension
license  : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
homepage : https://www.clickstorm.de
source   : [git] https://github.com/clickstorm/cs_seo.git 3004b6bc8b5643907576ce5be877629335c0f6a0
dist     : [zip] https://api.github.com/repos/clickstorm/cs_seo/zipball/3004b6bc8b5643907576ce5be877629335c0f6a0 3004b6bc8b5643907576ce5be877629335c0f6a0
names    : clickstorm/cs-seo, typo3-ter/cs-seo, clickstorm/cs_seo

support
issues : https://github.com/clickstorm/cs_seo/issues
source : https://github.com/clickstorm/cs_seo/tree/master

autoload
psr-4
Clickstorm\CsSeo\ => Classes/

requires
typo3/cms-core ^11.2
typo3/cms-seo ^11.2

requires (dev)
typo3/testing-framework *
phpstan/phpstan *
typo3/coding-standards *

replaces
typo3-ter/cs-seo self.version
clickstorm/cs_seo self.version

Cannot require specific Version (e.g. 4.3.1)

composer require clickstorm/cs-seo:4.3.1

  Problem 1
    - Root composer.json requires clickstorm/cs-seo 4.3.1, found clickstorm/cs-seo[dev-master, dev-TYPO3-12, dev-1x, dev-2x, dev-3x, dev-4x, dev-5x, dev-6x] but it does not match the constraint.
Kayu84 commented 1 year ago

Well, what's working: composer require clickstorm/cs_seo:4.3.1 But https://packagist.org/packages/clickstorm/cs_seo says, do use https://packagist.org/packages/clickstorm/cs-seo instead... but while there are only "dev-" available... you wouldn't use that...

Going with a workaround and using zip and path-type-repository instead ...

mhirdes commented 1 year ago

did you tried a composer clearcache

Kayu84 commented 1 year ago

@mhirdes Well, nice... thank you, composer clearcache before composer require clickstorm/cs-seo:4.3.1 works.