【发布时间】:2022-12-16 03:41:36
【问题描述】:
我已经为 Shopware 6 开发了插件。对于开发,我使用 shopware-docker。
现在我会测试不同版本的插件 (6.1 - 6.5 *).为了实现这个目标,我在本地安装了Shopware production Template。
默认情况下,分支 6.4.17.2被选中。安装例程后,一切正常。
但如果我结帐到分支 6.1,网页消失了 HTTP ERROR 500。
所以我尝试运行composer install 为当前分支 6.1 重新创建应用程序依赖项。
命令响应:
rammi@rammi-laptop-i7:~/Schreibtisch/PROJECTS/ecommerce/shopware-test-environment/shopware-test-environment$ composer install
Xdebug: [Step Debug] Could not connect to debugging client. Tried: 127.0.0.1:9003 (through xdebug.client_host/xdebug.client_port) :-(
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
> [ ! -f vendor/autoload.php ] || bin/console system:update:prepare
Xdebug: [Step Debug] Could not connect to debugging client. Tried: 127.0.0.1:9003 (through xdebug.client_host/xdebug.client_port) :-(
PHP Fatal error: Uncaught Error: Class "PackageVersions\Versions" not found in /var/www/ecommerce/shopware-test-environment/bin/console:50
Stack trace:
#0 {main}
thrown in /var/www/ecommerce/shopware-test-environment/bin/console on line 50
Script [ ! -f vendor/autoload.php ] || bin/console system:update:prepare handling the pre-update-cmd event returned with error code 255
对于git pull origin,答案是:
rammi@rammi-laptop-i7:~/Schreibtisch/PROJECTS/ecommerce/shopware-test-environment/shopware-test-environment$ git pull origin
Bereits aktuell.
我的问题:
- 什么是推荐的测试/阶段策略在不同的版本?
- 在吗关于的文档?
编辑 #1
该错误似乎对 deprecated PackageVersions\Versions 类(在 bin/console 内)提出了批评。现在我
寻求帮助,如何解决这个问题...
编辑 #2为 Branch 6.1 成功运行 composer install:
- 将 composer 版本降级到 1.* 因为 difference between V1 & V2
- 切换到 php 7.4
【问题讨论】:
-
也许你的意思是结帐,而不是拉? pull 只是意味着 fetch + merge 并且你或其他人似乎没有改变任何东西......
-
@Christoph 感谢您的回答。在签出到分支 6.1 和描述以下错误之后,拉动只是试图查看回购是否一切正常。这是结帐到 6.1 后的意外行为
-
@Christoph,我认为你的建议不是很有用,错误基于不同的作曲家版本,请参阅我的编辑 #1。不过谢谢你的建议,
标签: git testing version-control repository shopware6