Ocramius / PackageVersions

:package: Composer addon to efficiently get installed packages' version numbers
MIT License
3.22k stars 67 forks source link

BC break: removed deprecated `PackageVersions\Versions::ROOT_PACKAGE_NAME` constant #155

Closed Ocramius closed 4 years ago

Ocramius commented 4 years ago

This simplifies the tool to no longer be a plugin: PackageVersions\Versions is now a much simpler class that is no longer generated/written to disk at installation, and ocramius/package-versions is no longer a "type": "composer-plugin", but rather a more usual "type": "library" package.

This:

Ocramius commented 4 years ago

Will probably need to remove some error suppression from the current tests to see why they're failing :shrug:

Ocramius commented 4 years ago

Curious failure:


Changed current directory to /tmp/InstallerTest5f3fd3c3450612.54650718/global
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking ocramius/package-versions (1.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading ocramius/package-versions (1.0.0)
  - Installing ocramius/package-versions (1.0.0): Extracting archive
Plugin initialization failed (Plugin ocramius/package-versions could not be initialized, class not found: PackageVersions\Installer), uninstalling plugin
  - Removing ocramius/package-versions (1.0.0)
    Install of ocramius/package-versions failed

In PluginManager.php line 209:

  Plugin ocramius/package-versions could not be initialized, class not found:  
   PackageVersions\Installer                                      

I think I'll kill off the whole e2e installer test :shrug: