-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The command "extension:activate" does not exist. #762
Comments
Seams like the version check fails in some cases... Can you set the version via https://github.com/TYPO3/Surf/blob/master/src/Task/TYPO3/CMS/SetUpExtensionsTask.php#L54 |
The new version check @sabbelasichon implemented in ef548c4 only works if surf is part of your project, not if it's at phar or global / separate package. |
Yes, with this setting |
Thanks for your help @halbkreativ! |
I've installed ist now first as require-dev and than as "normal" require, but it fails on the same line when deploying with your docker image. |
Do you run just |
@sabbelasichon the issue with the failing version check if surf is not a package of the TYPO3 project is still present and a regression. I'll reopen the issue. |
I can confirm the same problem happened to me in TYPO3 11.5.27 through last deployments and this temporary fix #762 (comment) solved the problem for now. |
We're affected by this issue, too. Our problem is, we try to use a SURF configuration workflow/recipe that is compatible to both TYPO3v11 and TYPO3v12 currently (which Surf tries to support, so thanks for that). We actually decouple the composer.json requiring Surf from our main TYPO3 project composer.json. This is so that we can deploy different projects, but also so that Surf's composer requirements do not interfer with TYPO3's requirement and those of other extensions. This has worked quite well in the past. I understand the need that Surf needs to know which typo3console version (or even which TYPO3 version) is installed, but the route through composer.json sadly isn't viable. Would it be an option to make surf actually inspect the composer.json that is used to setup the workspace for, instead of "it's own" composer.json/lock? I understand executing the typo3(cms) binary on the remote host just to get its version number is not very clean. |
Have you tried using surf as a phar? |
I read the problem so that when using a PHAR, the same version-detection problem would exist: "only works if surf is part of your project, not if it's at phar or global / separate package." Having said that - I prefer a distinct "surf project" composer.json over a static phar, just because I have more control over dependencies and can inject other internal dependencies that we use on deployment... But I don't want to "hijack" this issue for this - I'd be interested in how the process of Surf trying to figure out the TYPO3 console version can be decoupled from being composed into the same project. |
I started with the development of that feature. t3easy@9f0ebf8 The idea is to run |
@t3easy This is great news. Sorry, I didn't catch that in my inspection of the issue. We'll happily test this once you feel up to getting feedback on it. I'm watching this issue, or if you want to open a fresh one for this followup, let me know. Many thanks for working on this, I think this will be a huge help for anyone creating global recipes like we do, where a wider range of versions/components can affect the workflow configuration. :-) 👍 |
Actual Behavior
On 28. April '23 the deployment runs as expected. Today it fails on
with message
Only difference is the TYPO3 version 11.5.26 and 11.5.27.
When installing surf 3.4 as dependency in project composer.json and start deployment inside ddev container it works as expected.
Steps to Reproduce the Problem
Specifications
Gitlab CI
Surf Config:
The text was updated successfully, but these errors were encountered: