Because in current json file version is 1.1, but install 1.2RC any installation of next module after entity_update is fail with message

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested package drupal/entity_update (locked at 1.1.0, required as ^1.2@dev) is satisfiable by drupal/entity_update[1.1.0] but these conflict with your requirements or minimum-stability.

Even if composer configured to use dev as minimal stability level.

Comments

cosolom created an issue. See original summary.

gngn’s picture

I got around this by changing my drupal/composer.lock :

         {
             "name": "drupal/entity_update",
-            "version": "1.1.0",
+            "version": "1.2.0",
             "source": {
                 "type": "git",
                 "url": "https://git.drupal.org/project/entity_update",
gngn’s picture

I am also not sure if the version info in entity_update/composer.json is needed.
Most other contrib modules do not have a line like
"version": "1.1.0",

cosolom’s picture

Status: Active » Needs review
StatusFileSize
new399 bytes
cosolom’s picture

StatusFileSize
new373 bytes

But will be better full remove version tag

gngn’s picture

#5 looks OK to me.
If we do not need the version, we should drop it.

tjtj’s picture

#5 has the wrong line endings, but fails for me even when fixed.

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/composer.json b/composer.json
|index 170e918..9a5525e 100755
|--- a/composer.json
|+++ b/composer.json
--------------------------
File to patch: composer.json
checking file composer.json
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED

The only entity_update line in my composer.json file is:

    "require": {
        "composer/installers": "^1.0.24",
        "wikimedia/composer-merge-plugin": "^1.4",
        "drush/drush": "^9.5",
        "dompdf/dompdf": "0.8.0",
        "drupal/entity_update": "^1.2@RC",
        "drupal/contentimport": "^4.1",
        "drupal/captcha": "1.x-dev",
        "drupal/panelbutton": "^1.1",
        "drupal/zurb_foundation": "^5.0@beta",
        "drupal/views_slideshow": "^4.6",
        "drupal/user_restrictions": "^1.0@beta"
    },

and things still won't install. I also made sure that composer.lock has

            "name": "drupal/entity_update",
            "version": "^1.2@RC",
            "source": {
                "type": "git",
                "url": "https://git.drupal.org/project/entity_update",
                "reference": "8.x-1.2-rc7"
            },
            "dist": {
                "type": "zip",
                "url": "https://ftp.drupal.org/files/projects/entity_update-8.x-1.2-rc7.zip",
                "reference": "8.x-1.2-rc7",
                "shasum": "1da5f2de7c6adcda9eac8140b5406e588910d50b"
            },

1.2RC7 is installed, but I still get:

-bash-4.2$ php composer require drupal/rules_webform
Using version ^1.3 for drupal/rules_webform
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package drupal/entity_update (locked at 1.1.0, required as ^1.2@RC) is satisfiable by drupal/entity_update[1.1.0] but these conflict with your requirements or minimum-stability.

Finally, I am getting

Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Content
The node.feeds_item field needs to be uninstalled.

and if I run drush entup, I get a loop!

-bash-4.2$ ./drush entup
The following updates are pending:

node entity type :
The node.feeds_item field needs to be uninstalled.

 Do you wish to run all pending updates? (yes/no) [yes]:
 > y


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>


In Connection.php line 686:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist: UP
  DATE {node__feeds_item} SET deleted=:db_update_placeholder_0; Array
  (
      [:db_update_placeholder_0] => 1
  )


In Statement.php line 59:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orcmaorg_d8.node__feeds_item' doesn't exist


batch:process [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command> <batch_id>
gngn’s picture

I am not sure, but I think:

  • Because this is about a wrong composer file you cannot install it with just mentioning the patch file.
  • We need a new release for this.

Attached a version of #5 with correct line endings.

dalin’s picture

Status: Needs review » Reviewed & tested by the community
iwsp’s picture

Status: Reviewed & tested by the community » Fixed

Thank you, please get the new version

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.