Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Cannot apply patch https://www.drupal.org/files/issues/2870904-22.patch #42

Open
jakubsuchy opened this issue Jun 28, 2017 · 7 comments
Assignees
Labels

Comments

@jakubsuchy
Copy link

Ran:
jimmy@Jakub:~/Sites/devdesktop$ composer create-project acquia/reservoir-project reservoir --stability=alpha

Detailed error when rerunning with -vvv


cd 'docroot/modules/contrib/schemata' && git --git-dir=. apply --check '-p1' '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
Executing command (CWD): cd 'docroot/modules/contrib/schemata' && git --git-dir=. apply --check '-p1' '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
error: patch failed: src/Controller/Controller.php:82
error: src/Controller/Controller.php: patch does not apply
error: patch failed: src/Routing/Routes.php:71
error: src/Routing/Routes.php: patch does not apply

error: tests/expectations/node.api_json.json: already exists in working directory
error: tests/expectations/node.hal_json.json: already exists in working directory
error: tests/expectations/node.json.json: already exists in working directory
error: tests/expectations/taxonomy_term.api_json.json: already exists in working directory
error: tests/expectations/taxonomy_term.hal_json.json: already exists in working directory
error: tests/expectations/taxonomy_term.json.json: already exists in working directory
error: patch failed: tests/src/Functional/RequestTest.php:92
error: tests/src/Functional/RequestTest.php: patch does not apply

cd 'docroot/modules/contrib/schemata' && git --git-dir=. apply --check '-p0' '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
Executing command (CWD): cd 'docroot/modules/contrib/schemata' && git --git-dir=. apply --check '-p0' '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
error: a/src/Controller/Controller.php: No such file or directory
error: a/src/Routing/Routes.php: No such file or directory

error: a/tests/src/Functional/RequestTest.php: No such file or directory

cd 'docroot/modules/contrib/schemata' && git --git-dir=. apply --check '-p2' '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
Executing command (CWD): cd 'docroot/modules/contrib/schemata' && git --git-dir=. apply --check '-p2' '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
error: Controller/Controller.php: No such file or directory
error: Routing/Routes.php: No such file or directory

error: src/Functional/RequestTest.php: No such file or directory

patch '-p1' --no-backup-if-mismatch -d 'docroot/modules/contrib/schemata' < '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
Executing command (CWD): patch '-p1' --no-backup-if-mismatch -d 'docroot/modules/contrib/schemata' < '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
patching file src/Controller/Controller.php
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file src/Controller/Controller.php.rej

patching file src/Routing/Routes.php

Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file src/Routing/Routes.php.rej

The next patch would create the file tests/expectations/node.api_json.json,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file tests/expectations/node.api_json.json.rej


The next patch would create the file tests/expectations/node.hal_json.json,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file tests/expectations/node.hal_json.json.rej

The next patch would create the file tests/expectations/node.json.json,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file tests/expectations/node.json.json.rej

The next patch would create the file tests/expectations/taxonomy_term.api_json.json,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file tests/expectations/taxonomy_term.api_json.json.rej

The next patch would create the file tests/expectations/taxonomy_term.hal_json.json,
which already exists!  Assume -R? [n] 

Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file tests/expectations/taxonomy_term.hal_json.json.rej


The next patch would create the file tests/expectations/taxonomy_term.json.json,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file tests/expectations/taxonomy_term.json.json.rej

patching file tests/src/Functional/RequestTest.php
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file tests/src/Functional/RequestTest.php.rej


patch '-p0' --no-backup-if-mismatch -d 'docroot/modules/contrib/schemata' < '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
Executing command (CWD): patch '-p0' --no-backup-if-mismatch -d 'docroot/modules/contrib/schemata' < '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
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/src/Controller/Controller.php b/src/Controller/Controller.php
|index 5a201b8..4a448c1 100644
|--- a/src/Controller/Controller.php
|+++ b/src/Controller/Controller.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.

1 out of 1 hunk ignored
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/Routing/Routes.php b/src/Routing/Routes.php
|index 4309bf9..b832206 100644
|--- a/src/Routing/Routes.php
|+++ b/src/Routing/Routes.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.

1 out of 1 hunk ignored

patching file b/tests/expectations/node.api_json.json

patching file b/tests/expectations/node.hal_json.json

patching file b/tests/expectations/node.json.json

patching file b/tests/expectations/taxonomy_term.api_json.json

patching file b/tests/expectations/taxonomy_term.hal_json.json

patching file b/tests/expectations/taxonomy_term.json.json

can't find file to patch at input line 1683
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/tests/src/Functional/RequestTest.php b/tests/src/Functional/RequestTest.php
|index cd906f1..5645a7d 100644
|--- a/tests/src/Functional/RequestTest.php
|+++ b/tests/src/Functional/RequestTest.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.

1 out of 1 hunk ignored

patch '-p2' --no-backup-if-mismatch -d 'docroot/modules/contrib/schemata' < '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
Executing command (CWD): patch '-p2' --no-backup-if-mismatch -d 'docroot/modules/contrib/schemata' < '/var/folders/w2/t69w4fpx11961dxt7ds1r8mm0000gn/T/59542662aa871.patch'
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/src/Controller/Controller.php b/src/Controller/Controller.php
|index 5a201b8..4a448c1 100644
|--- a/src/Controller/Controller.php
|+++ b/src/Controller/Controller.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.

1 out of 1 hunk ignored
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/Routing/Routes.php b/src/Routing/Routes.php
|index 4309bf9..b832206 100644
|--- a/src/Routing/Routes.php
|+++ b/src/Routing/Routes.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.

1 out of 1 hunk ignored

patching file expectations/node.api_json.json

patching file expectations/node.hal_json.json

patching file expectations/node.json.json

patching file expectations/taxonomy_term.api_json.json

patching file expectations/taxonomy_term.hal_json.json

patching file expectations/taxonomy_term.json.json

can't find file to patch at input line 1683
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/tests/src/Functional/RequestTest.php b/tests/src/Functional/RequestTest.php
|index cd906f1..5645a7d 100644
|--- a/tests/src/Functional/RequestTest.php
|+++ b/tests/src/Functional/RequestTest.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.

1 out of 1 hunk ignored

   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2870904-22.patch


@btmash
Copy link

btmash commented Jun 29, 2017

It seems like the patch has been applied to the schemata module

@wimleers
Copy link
Member

wimleers commented Jun 29, 2017

Hm, this is odd:

Installing drupal/schemata (dev-1.x 99c723d) Cloning 99c723ddd4 from cache

because until edb9cbc, it used to reference "drupal/schemata": "1.x-dev#8325d172e1d6880aa24073f8f751ef089282cf9a", now it references "drupal/openapi": "1.0.0-alpha1", which in turn depends on "drupal/schemata": "^1.0" (as of http://cgit.drupalcode.org/openapi/commit/?id=252b873).

But you're not even on that, you're on 1.0.0-alpha1. I can reproduce that failing in the same way:

  - Installing drupal/schemata (dev-1.x 99c723d)
    Cloning 99c723ddd4f8489d82f030d686d68f72f6055cdc from cache

  - Applying patches for drupal/schemata
    https://www.drupal.org/files/issues/2870904-22.patch (Add entity type only schema routes for entity types with bundles)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2870904-22.patch

It's not that the Schemata module removed the commit that it's referencing, because I can still see it: http://cgit.drupalcode.org/schemata/commit/?id=8325d172e1d6880aa24073f8f751ef089282cf9a.

In any case, something is off in either our composer.json or in the drupal/schemata dependency (or both). In any case, 1.0.0-alpha1 is currently broken.

@wimleers
Copy link
Member

I just tagged 1.0.0-alpha2. But that doesn't seem to fix it. It keeps using alpha1. Even after doing composer update.

I installed it:

$ composer create-project acquia/reservoir-project MY_PROJECT --stability=alpha
Installing acquia/reservoir-project (1.0.0-alpha1)
  - Installing acquia/reservoir-project (1.0.0-alpha1): Loading from cache
Created project in MY_PROJECT
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 57 installs, 0 updates, 0 removals
  - Installing drupal-composer/drupal-scaffold (2.3.0): Loading from cache
  - Installing composer/installers (v1.3.0): Loading from cache
  - Installing cweagans/composer-patches (1.6.1): Loading from cache
No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing paragonie/random_compat (v2.0.10): Loading from cache
  - Installing lcobucci/jwt (3.2.1): Loading from cache
  - Installing league/event (2.1.2): Loading from cache
  - Installing league/oauth2-server (5.1.3): Loading from cache
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-feed (2.8.0): Loading from cache
  - Installing zendframework/zend-diactoros (1.4.0): Loading from cache
  - Installing twig/twig (v1.34.3): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.4.0): Loading from cache
  - Installing symfony/translation (v2.8.22): Loading from cache
  - Installing ircmaxell/password-compat (v1.0.4): Loading from cache
  - Installing symfony/polyfill-php55 (v1.4.0): Loading from cache
  - Installing symfony/polyfill-php54 (v1.4.0): Loading from cache
  - Installing symfony/http-foundation (v2.8.22): Loading from cache
  - Installing symfony/psr-http-message-bridge (v1.0.0): Loading from cache
  - Installing symfony/polyfill-iconv (v1.4.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v2.8.22): Loading from cache
  - Installing symfony/event-dispatcher (v2.8.22): Loading from cache
  - Installing symfony/http-kernel (v2.8.22): Loading from cache
  - Installing symfony/routing (v2.8.22): Loading from cache
  - Installing symfony-cmf/routing (1.4.1): Loading from cache
  - Installing stack/builder (v1.0.4): Loading from cache
  - Installing masterminds/html5 (2.2.2): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing egulias/email-validator (1.2.14): Loading from cache
  - Installing easyrdf/easyrdf (0.9.1): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/collections (v1.4.0): Loading from cache
  - Installing doctrine/cache (v1.6.1): Loading from cache
  - Installing doctrine/annotations (v1.2.7): Loading from cache
  - Installing doctrine/common (v2.7.2): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing asm89/stack-cors (1.1.0): Loading from cache
  - Installing symfony/yaml (v2.8.22): Loading from cache
  - Installing symfony/validator (v2.8.22): Loading from cache
  - Installing symfony/serializer (v2.8.22): Loading from cache
  - Installing symfony/process (v2.8.22): Loading from cache
  - Installing symfony/dependency-injection (v2.8.22): Loading from cache
  - Installing symfony/console (v2.8.22): Loading from cache
  - Installing symfony/polyfill-apcu (v1.4.0): Loading from cache
  - Installing symfony/class-loader (v2.8.22): Loading from cache
  - Installing drupal/core (8.3.4): Loading from cache
  - Applying patches for drupal/core
    https://www.drupal.org/files/issues/2885755-2-8.3.x.patch (Fix toolbar active link handling)
    https://www.drupal.org/files/issues/2886861-2.patch (field.storage.node.body belongs in 'standard' install profile, not in the 'node' module)

  - Installing drupal/simple_oauth (2.0.0-rc2): Loading from cache
  - Applying patches for drupal/simple_oauth
    https://www.drupal.org/files/issues/2883862-11.patch (simple_oauth cannot be installed in an install profile without also installing simple_oauth_extras)

  - Installing drupal/jsonapi (1.0.0): Loading from cache
  - Installing drupal/schemata (dev-1.x 99c723d): Cloning 99c723ddd4 from cache
  - Applying patches for drupal/schemata
    https://www.drupal.org/files/issues/2870904-22.patch (Add entity type only schema routes for entity types with bundles)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2870904-22.patch

  - Installing drupal/openapi (dev-1.x cd8187c): Cloning cd8187c5f4 from cache
  - Installing acquia/reservoir (1.0.0-alpha1): Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
lcobucci/jwt suggests installing mdanter/ecc (Required to use Elliptic Curves based algorithms.)
league/oauth2-server suggests installing indigophp/hash-compat (Polyfill for hash_equals function for PHP 5.5)
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries ehen using the Writer subcomponent)
symfony/translation suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/finder ()
symfony/http-kernel suggests installing symfony/var-dumper ()
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
symfony/validator suggests installing symfony/config ()
symfony/validator suggests installing symfony/expression-language (For using the 2.4 Expression validator)
symfony/validator suggests installing symfony/intl ()
symfony/validator suggests installing symfony/property-access (For using the 2.4 Validator API)
symfony/serializer suggests installing symfony/config (For using the XML mapping loader.)
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
symfony/dependency-injection suggests installing symfony/config ()
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
Writing lock file
Generating autoload files
Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)wim.leers at acquia in /tmp

As you can see, still the same problem. Because it's still using alpha 1.

So then:

$ cd MY_PROJECT/
wim.leers at acquia in /tmp/MY_PROJECT
$ composer update
No patches supplied.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
Generating autoload files

Did not seem to do much. Let's check:

wim.leers at acquia in /tmp/MY_PROJECT
$ composer install
No patches supplied.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/schemata_json_schema 1.x-dev requires drupal/schemata == 1.9999999.9999999.9999999-dev -> no matching package found.
    - drupal/schemata_json_schema 1.x-dev requires drupal/schemata == 1.9999999.9999999.9999999-dev -> no matching package found.
    - Installation request for drupal/schemata_json_schema 1.x-dev -> satisfiable by drupal/schemata_json_schema[1.x-dev].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Eh… why do we now suddenly get this?!

Well, now that we ran composer update, let's try reinstalling from scratch:

wim.leers at acquia in /tmp/MY_PROJECT
$ ..
wim.leers at acquia in /tmp
$ rm -rf MY_PROJECT
wim.leers at acquia in /tmp
$ composer create-project acquia/reservoir-project MY_PROJECT --stability=alpha
Installing acquia/reservoir-project (1.0.0-alpha1)
  - Installing acquia/reservoir-project (1.0.0-alpha1): Loading from cache
Created project in MY_PROJECT
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 57 installs, 0 updates, 0 removals
  - Installing drupal-composer/drupal-scaffold (2.3.0): Loading from cache
  - Installing composer/installers (v1.3.0): Loading from cache
  - Installing cweagans/composer-patches (1.6.1): Loading from cache
No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing paragonie/random_compat (v2.0.10): Loading from cache
  - Installing lcobucci/jwt (3.2.1): Loading from cache
  - Installing league/event (2.1.2): Loading from cache
  - Installing league/oauth2-server (5.1.3): Loading from cache
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-feed (2.8.0): Loading from cache
  - Installing zendframework/zend-diactoros (1.4.0): Loading from cache
  - Installing twig/twig (v1.34.3): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.4.0): Loading from cache
  - Installing symfony/translation (v2.8.22): Loading from cache
  - Installing ircmaxell/password-compat (v1.0.4): Loading from cache
  - Installing symfony/polyfill-php55 (v1.4.0): Loading from cache
  - Installing symfony/polyfill-php54 (v1.4.0): Loading from cache
  - Installing symfony/http-foundation (v2.8.22): Loading from cache
  - Installing symfony/psr-http-message-bridge (v1.0.0): Loading from cache
  - Installing symfony/polyfill-iconv (v1.4.0): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v2.8.22): Loading from cache
  - Installing symfony/event-dispatcher (v2.8.22): Loading from cache
  - Installing symfony/http-kernel (v2.8.22): Loading from cache
  - Installing symfony/routing (v2.8.22): Loading from cache
  - Installing symfony-cmf/routing (1.4.1): Loading from cache
  - Installing stack/builder (v1.0.4): Loading from cache
  - Installing masterminds/html5 (2.2.2): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing egulias/email-validator (1.2.14): Loading from cache
  - Installing easyrdf/easyrdf (0.9.1): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/collections (v1.4.0): Loading from cache
  - Installing doctrine/cache (v1.6.1): Loading from cache
  - Installing doctrine/annotations (v1.2.7): Loading from cache
  - Installing doctrine/common (v2.7.2): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing asm89/stack-cors (1.1.0): Loading from cache
  - Installing symfony/yaml (v2.8.22): Loading from cache
  - Installing symfony/validator (v2.8.22): Loading from cache
  - Installing symfony/serializer (v2.8.22): Loading from cache
  - Installing symfony/process (v2.8.22): Loading from cache
  - Installing symfony/dependency-injection (v2.8.22): Loading from cache
  - Installing symfony/console (v2.8.22): Loading from cache
  - Installing symfony/polyfill-apcu (v1.4.0): Loading from cache
  - Installing symfony/class-loader (v2.8.22): Loading from cache
  - Installing drupal/core (8.3.4): Loading from cache
  - Applying patches for drupal/core
    https://www.drupal.org/files/issues/2885755-2-8.3.x.patch (Fix toolbar active link handling)
    https://www.drupal.org/files/issues/2886861-2.patch (field.storage.node.body belongs in 'standard' install profile, not in the 'node' module)

  - Installing drupal/simple_oauth (2.0.0-rc2): Loading from cache
  - Applying patches for drupal/simple_oauth
    https://www.drupal.org/files/issues/2883862-11.patch (simple_oauth cannot be installed in an install profile without also installing simple_oauth_extras)

  - Installing drupal/jsonapi (1.0.0): Loading from cache
  - Installing drupal/schemata (dev-1.x 99c723d): Cloning 99c723ddd4 from cache
  - Applying patches for drupal/schemata
    https://www.drupal.org/files/issues/2870904-22.patch (Add entity type only schema routes for entity types with bundles)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2870904-22.patch

  - Installing drupal/openapi (dev-1.x cd8187c): Cloning cd8187c5f4 from cache
  - Installing acquia/reservoir (1.0.0-alpha1): Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
lcobucci/jwt suggests installing mdanter/ecc (Required to use Elliptic Curves based algorithms.)
league/oauth2-server suggests installing indigophp/hash-compat (Polyfill for hash_equals function for PHP 5.5)
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries ehen using the Writer subcomponent)
symfony/translation suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/finder ()
symfony/http-kernel suggests installing symfony/var-dumper ()
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
symfony/validator suggests installing symfony/config ()
symfony/validator suggests installing symfony/expression-language 

Still using alpha 1. WTF.

https://packagist.org/packages/acquia/reservoir lists the correct version.

Assigning to @tedbow, since he worked on the Schemata/OpenAPI stuff.

@wimleers
Copy link
Member

@mattgrill just confirmed he could reproduce this still even with alpha2 tagged, even with cold composer cache.

@damontgomery
Copy link

I'm getting the same issues here.

rm composer.lock
composer clearcache
composer install --prefer-source

It wants to use alpha1 for Reservoir and I get the same patch issue. :(

@damontgomery
Copy link

I also tried pinning to alpha2 for an existing project and got errors.

composer require acquia/reservoir:^1.0.0-alpha2@alpha --no-update
rm composer.lock
rm -rf vendor
composer clearcache
composer install --prefer-source

Error

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for acquia/reservoir ^1.0.0-alpha2@alpha -> satisfiable by acquia/reservoir[1.0.0-alpha2].
    - acquia/reservoir 1.0.0-alpha2 requires drupal/openapi 1.0.0-alpha1 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

@e0ipso
Copy link

e0ipso commented Jul 3, 2017

This is how we addressed this in Contenta. https://github.com/contentacms/contenta_jsonapi/pull/83/files

Thanks @jakubsuchy for bringing this issue to attention. It'd be great if we could ping each other's project more often( like @jakubsuchy did) to minimize effort duplication.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants