composer 无法更新 packagist.org 有缓存?跟 github.com 不一样
<code>composer clear-cache rm -rf vendor/* composer update -vvv </code>
<code> - Installing g9901/yii2-gftp (2.0.1) Downloading https://api.github.com/repos/G9901/yii2-gftp/zipball/5621e075a25d13b83587f6293ff35c0ee00f1769 Downloading: 100% Writing /root/.composer/cache/files/g9901/yii2-gftp/5621e075a25d13b83587f6293ff35c0ee00f1769.zip into cache Extracting archive Executing command (CWD): unzip '/home/flxx/basic/vendor/g9901/yii2-gftp/74b544ff38bad8cd15f4e57f4fea1bd4' -d '/home/flxx/basic/vendor/composer /befb67d9' && chmod -R u+w '/home/flxx/basic/vendor/composer/befb67d9' REASON: Required by root: Install command rule (install g9901/yii2-gftp 2.0|install g9901/yii2-gftp 2.0.1) </code>
很奇怪的现象,下载到目录的 g9901/yii2-gftp 还是旧的,跟 github.com 上的源码不一样!
下载来的源码:
<code>php</code><code>public function login () { $this->connectIfNeeded(false); $this->handle->login(); $this->onLogin(new Event(['sender' => $this, 'data' => $user])); } </code>
github.com 上的源码:
<code>php</code><code>public function login () { $this->connectIfNeeded(false); $this->handle->login(); $this->onLogin(new Event(['sender' => $this, 'data' => $this->handle->user])); } </code>
已经在 packagist.org 上点击了 “update” 按钮很多次了。 https://packagist.org/packages/g9901/yii2-gftp,奇怪的是packagist 显示的最后修改时间还是 2015-07-15 20:04 UTC
回复内容:
<code>composer clear-cache rm -rf vendor/* composer update -vvv </code>
<code> - Installing g9901/yii2-gftp (2.0.1) Downloading https://api.github.com/repos/G9901/yii2-gftp/zipball/5621e075a25d13b83587f6293ff35c0ee00f1769 Downloading: 100% Writing /root/.composer/cache/files/g9901/yii2-gftp/5621e075a25d13b83587f6293ff35c0ee00f1769.zip into cache Extracting archive Executing command (CWD): unzip '/home/flxx/basic/vendor/g9901/yii2-gftp/74b544ff38bad8cd15f4e57f4fea1bd4' -d '/home/flxx/basic/vendor/composer /befb67d9' && chmod -R u+w '/home/flxx/basic/vendor/composer/befb67d9' REASON: Required by root: Install command rule (install g9901/yii2-gftp 2.0|install g9901/yii2-gftp 2.0.1) </code>
很奇怪的现象,下载到目录的 g9901/yii2-gftp 还是旧的,跟 github.com 上的源码不一样!
下载来的源码:
<code>php</code><code>public function login () { $this->connectIfNeeded(false); $this->handle->login(); $this->onLogin(new Event(['sender' => $this, 'data' => $user])); } </code>
github.com 上的源码:
<code>php</code><code>public function login () { $this->connectIfNeeded(false); $this->handle->login(); $this->onLogin(new Event(['sender' => $this, 'data' => $this->handle->user])); } </code>
已经在 packagist.org 上点击了 “update” 按钮很多次了。 https://packagist.org/packages/g9901/yii2-gftp,奇怪的是packagist 显示的最后修改时间还是 2015-07-15 20:04 UTC

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

PHP 8.4 带来了多项新功能、安全性改进和性能改进,同时弃用和删除了大量功能。 本指南介绍了如何在 Ubuntu、Debian 或其衍生版本上安装 PHP 8.4 或升级到 PHP 8.4

CakePHP 是 PHP 的开源框架。它的目的是使应用程序的开发、部署和维护变得更加容易。 CakePHP 基于类似 MVC 的架构,功能强大且易于掌握。模型、视图和控制器 gu

Visual Studio Code,也称为 VS Code,是一个免费的源代码编辑器 - 或集成开发环境 (IDE) - 可用于所有主要操作系统。 VS Code 拥有针对多种编程语言的大量扩展,可以轻松编写

CakePHP 是一个开源MVC 框架。它使开发、部署和维护应用程序变得更加容易。 CakePHP 有许多库可以减少大多数常见任务的过载。

本教程演示了如何使用PHP有效地处理XML文档。 XML(可扩展的标记语言)是一种用于人类可读性和机器解析的多功能文本标记语言。它通常用于数据存储
