top-think/think

使用Composer,即使指定了版本,下载到的都是6.0.8,这是什么原因?

Opened this issue · 0 comments

wh-82 commented

composer create-project topthink/think=6.0.x-dev tp6
composer create-project topthink/think=6.0.7 tp6
composer create-project topthink/think=6.0.0 tp6
安装的都是6.0.8版本

[root@localhost swoole]# composer create-project topthink/think=6.0.6 think-6.0.6
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "topthink/think=6.0.6" project at "./think-6.0.6"
Installing topthink/think (v6.0.6)
  - Installing topthink/think (v6.0.6): Extracting archive
Created project in /root/swoole/think-6.0.6
Loading composer repositories with package information
Updating dependencies
Lock file operations: 15 installs, 0 updates, 0 removals
  - Locking league/flysystem (1.1.3)
  - Locking league/flysystem-cached-adapter (1.1.0)
  - Locking league/mime-type-detection (1.7.0)
  - Locking psr/cache (1.0.1)
  - Locking psr/container (1.1.1)
  - Locking psr/log (1.1.4)
  - Locking psr/simple-cache (1.0.1)
  - Locking symfony/polyfill-mbstring (v1.22.1)
  - Locking symfony/polyfill-php72 (v1.22.1)
  - Locking symfony/polyfill-php80 (v1.22.1)
  - Locking symfony/var-dumper (v4.4.22)
  - Locking topthink/framework (v6.0.8)
  - Locking topthink/think-helper (v3.1.4)
  - Locking topthink/think-orm (v2.0.40)
  - Locking topthink/think-trace (v1.4)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 15 installs, 0 updates, 0 removals
  - Installing psr/cache (1.0.1): Extracting archive
  - Installing league/mime-type-detection (1.7.0): Extracting archive
  - Installing league/flysystem (1.1.3): Extracting archive
  - Installing league/flysystem-cached-adapter (1.1.0): Extracting archive
  - Installing psr/container (1.1.1): Extracting archive
  - Installing symfony/polyfill-php80 (v1.22.1): Extracting archive
  - Installing symfony/polyfill-php72 (v1.22.1): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.22.1): Extracting archive
  - Installing symfony/var-dumper (v4.4.22): Extracting archive
  - Installing topthink/think-helper (v3.1.4): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing topthink/think-orm (v2.0.40): Extracting archive
  - Installing topthink/framework (v6.0.8): Extracting archive
  - Installing topthink/think-trace (v1.4): Extracting archive
13 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
> @php think service:discover
Succeed!
> @php think vendor:publish
Succeed!
6 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
[root@localhost swoole]# cd think-6.0.6/
[root@localhost think-6.0.6]# php think -V
version 6.0.8