Skip to content
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

[PR] 修复 composer update 无法正确安装 2.0 版本的问题 #3

Closed
wants to merge 1 commit into from
Closed

[PR] 修复 composer update 无法正确安装 2.0 版本的问题 #3

wants to merge 1 commit into from

Conversation

cnsaturn
Copy link

@cnsaturn cnsaturn commented Dec 7, 2015

本 PR 解决设置了 minimum-stability 时,composer update -vvv 无法安装指定版本的问题。

除了这个 PR 外,还有一个办法解决此问题(via):

{
  "type": "package",
  "package": {
    "name": "aliyuncs/oss-sdk-php",
    "version": "2.0.0",
    "dist": {
      "url": "https://github.com/aliyun/aliyun-oss-php-sdk/archive/master.zip",
      "type": "zip"
    },
    "autoload": {
      "psr-4": {"OSS\\": "src/OSS"}
    }
  }
}

然后在 require 中添加

"aliyun/oss-sdk-php": "2.0.*"

完成后 composer update 即可。

@rockuw
Copy link
Contributor

rockuw commented Dec 11, 2015

能说一下如何复现你说的问题吗?

@debmzhang
Copy link

建议作者可以使用 5.4 版本的 php 进行开发, 比如 OSS\Core\OssUtil 这里面 const OSS_MAX_PART_SIZE = 5 * 1024 * 1024 * 1024; 使用这种方式定义常, 貌似是 php 5.6 以上才支持吧

@rockuw
Copy link
Contributor

rockuw commented Dec 21, 2015

@debmzhang OK,我马上fix。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants