Problem/Motivation
Having "version": "dev-master", is preventing the composer update or install by a composer.lock file
found drupal/block_library[dev-master] but it does not match the constraint.
Steps to reproduce
- composer create-project
- composer requiere drupal/block_library
Then any update or required other modules will bring the following
composer require 'drupal/block_library:^1.0@alpha'./composer.json has been updatedLoading composer repositories with package informationUpdating dependencies (including require-dev)Your requirements could not be resolved to an installable set of packages.
Problem 1- The requested package drupal/block_library ^1.0@alpha is satisfiable by drupal/block_library[dev-master] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
Proposed resolution
- Remove
"version": "dev-master",from the composer.json file
Remaining tasks
- Patch
- Test install
- Test update
- Test requiring other projects with block_library
- Review
User interface changes
- None
API changes
- None
Data model changes
- None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3205060-3.patch | 442 bytes | rajab natshah |
Issue fork block_library-3205060
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahComment #10
cassioalmeida commentedI can confirm the issue.
When I export my configs after install and enable the https://www.drupal.org/project/ixm_blocks tabs, I got this in the dependencies:
As we can see, it depends on the block_library, but the ixm_blocks or ixm_tabs do not require it as a dependency.
So I started to have an issue with the config import because the module "block_library" does not exist.
Then I installed the block_library, I started to have this issue.
I'm using my MR https://git.drupalcode.org/project/block_library/-/merge_requests/2 and it fixed the problem.
Comment #11
aaronchristian commentedLooks good to me Cassio.
Comment #12
mahmoud-zayed commentedComment #13
mahmoud-zayed commentedAdd to 1.0.0-alpha2, thank you all!