Comments (11)
The interface has changed, see https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#upgrades-guides-for-composer-1x-to-20
from foxy.
@samdark Thank you! I will try to find some time this weekend to test the compatibility with Composer v2.
from foxy.
Compatibility added by b7473e7.
from foxy.
My test was with the master branch and not with a compiled version of Composer. This comes from checking the version of Composer which is a SHA1 and not @package_version@
for the snapshots.
I add this case right away.
from foxy.
Compatibility with Composer snapshots added by 201420a.
from foxy.
I have not yet had the opportunity to look in more detail the version 2.0 of Composer. Is it just a matter of version constraint? Or, are there more problematic changes for this plugin?
from foxy.
Looks like the following would work:
- Change constraint in
composer.json
."composer-plugin-api": "^1.0|^2.0",
- In the
Foxy
class add two dummy methods:
public function deactivate(Composer $composer, IOInterface $io): void
{
// do nothing
}
public function uninstall(Composer $composer, IOInterface $io): void
{
// do nothing
}
- You may do cleanup in
deactivate
anduninstall
but it doesn't seem to be necessary for the plugin to just work as before. - There could be extras...
from foxy.
Interesting. Composer 2 fails to install it:
Loading composer repositories with package information
Updating dependencies
Lock file operations: 47 installs, 0 updates, 0 removals
...
- Locking foxy/foxy (dev-master 7efd3d1)
...
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 47 installs, 0 updates, 0 removals
- Installing foxy/foxy (dev-master 7efd3d1): Extracting archive
Plugin initialization failed (Invalid version string "d173af2d7ac1408655df2cf6670ea0262e06d137"), uninstalling plugin
- Removing foxy/foxy (dev-master 7efd3d1)
Install of foxy/foxy failed
from foxy.
You can try with https://github.com/yiisoft/yii-bootstrap4
from foxy.
Sure enough, I also get this error now.
from foxy.
Works now. Thank you!
from foxy.
Related Issues (20)
- Infinite loop HOT 1
- Install/update ends with npm error: "invalid version dev-master" HOT 18
- aggregating common devDependencies? HOT 8
- Asset paths in libraries HOT 11
- Add support for the old versions of NPM <5.0 HOT 5
- I made a plugin for Yii2 to use your plugin, can you watch it and give me some suggestion? HOT 15
- Yarn update should use install instead of upgrade HOT 6
- Install npm dependencies of composer dependency HOT 1
- Problems with npm package stisla HOT 1
- foxy does not split packages in dev and production packages HOT 5
- Issues with composer 2.1 HOT 4
- Support for Usage, confused on documentation
- Make compatible with Yarn 2 HOT 1
- Running composer install is updating package-lock.json HOT 1
- Running composer update --lock updates package-lock.json
- v1.2.0 no more works with PHP less than 7.1 HOT 2
- Default value of "manager-timeout" setting is incompatible with Composer 2.3+ HOT 2
- Support pnpm
- The code not compatible with new Composer version 2.6.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foxy.