TYPO3-CMS/styleguide

Installing via composer didn't load the correct version - typo3 v10

Closed this issue · 1 comments

Bug Report

Prerequisites

  • Did you reproduce the problem on TYPO3 v10.4 LTS?

Description

I installed it on a fresh TYPO3 v10 Version via composer as described in the description but instead he load the ^10 version of styleguide the ^11 version was installed

Steps to Reproduce

  1. install typo3 v10
  2. composer require --dev typo3/cms-styleguide

Expected behavior:
Should install the TYPO3 expected version

Actual behavior:
Installs the lastest version,

There is a slack thread about this
https://typo3.slack.com/archives/C025BQLFA/p1629820948490800

That's because I removed the require section to core in composer.json at some point ... I did that because it triggered nasty dependency issues with core monorepo where styleguide is used as dev dependency. Cyclic dependencies are hell ..

For now, I need to ask you to composer require --dev typo3/cms-styleguide:^10 in a v10 instance instead. I know that's unfortunate and needs additional work when you upgrade that instance to v11, but I have no other quick solution at hand.

I'll think about that for a while and may either re-introduce a core dependency (which will be an issue for existing styleguide v11 tags), or ... well, document differently.