我可以在选定的快照中安装Composer还是只能在“官方”快照中安装Composer?版 [英] Can I install Composer in selected snapshot or only in "official" version

查看:61
本文介绍了我可以在选定的快照中安装Composer还是只能在“官方”快照中安装Composer?版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事实证明,我在Composer的全局和本地安装中的快照版本都不相同 –全局是 2015-07-12_15-39-36-42bfe9c 和本地 2015-06-26_13-40-26-943107c 。这两种更新都是对最新版本/快照的更新,但是始终会回滚到安装历史记录中的前一个,而不是发行历史记录中的前一个(即,不是最新快照之前的一个,而不是同一快照)。

It turned out, that both my global and local installations of Composer are in different snapshot versions -- global is 2015-07-12_15-39-36-42bfe9c and local in 2015-06-26_13-40-26-943107c. Both updates to newest version / snapshot, but always rolls back to previous one in installation history, not to previous one in release history (i.e. not to the one before latest snapshot, not to the same one).

有什么方法可以将Composer的每次安装回滚到特定快照吗?要使两个安装具有相同的版本/快照,而不是最新的安装(有一些错误)?

Is there any way, I can roll back each installation of Composer to a specific snapshot? To have both installations in the same version / snapshot, but not the newest one (which has some bugs)?

知道,我可以安装任何版本的Composer ,我想使用-version 开关。但是,这仅涵盖一个正式版本,其中最新快照之前的最新快照是 1.0.0-alpha10(2015-04-14),该版本早于版本

I know, that I can install Composer in any version, I want, using --version switch. But, this covers only an official versions, where the latest one before latest snapshot is 1.0.0-alpha10 (2015-04-14), that is far before versions, to which my current installations rolls back.

推荐答案

对于Composer的本地安装,这当然是可能的,并且只需要复制 composer.phar 文件(处于选定版本中)在使用Composer本地安装的所有项目中。这样,所有这些文件都将具有相同版本/快照的本地Composer。

As for local installations of Composer, this is of course possible and only requires copying composer.phar file, in selected version, over all projects, that are using local installation of Composer. This way, all of them will have local Composer in the very same version / snapshot.

对于全局安装,这似乎是不可能的。

As for global installation, this seems to be impossible.

这篇关于我可以在选定的快照中安装Composer还是只能在“官方”快照中安装Composer?版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆