acquia / reservoir

A back end for your front end: a content repository. Powered by Drupal 8, JSON API and OAuth2.
244 stars 30 forks source link

Install not working --> fatal: reference is not a tree #24

Open dbt102 opened 7 years ago

dbt102 commented 7 years ago

Was introduced to reservoir today.

When I try the install using the the composer based project template it fails ...

[RuntimeException]
Failed to execute git checkout '8325d172e1d6880aa24073f8f751ef089282cf9a' -- && git reset --hard '8325
d172e1d6880aa24073f8f751ef089282cf9a' --
fatal: reference is not a tree: 8325d172e1d6880aa24073f8f751ef089282cf9a

screen shot 2017-06-22 at 10 58 26 am

Not sure what I'm doing wrong

JakeWilund commented 7 years ago

I can confirm I also experienced this using the composer project template. The way I worked around this for now was to download the base reservoir repository and run 'composer install' from within that directory. As far as I can tell, the end result is the same.

wimleers commented 7 years ago

Trying to reproduce… stay tuned.

wimleers commented 7 years ago

First attempt to reproduce failed:

$ composer create-project acquia/reservoir-project reservoir --stability=alpha
Installing acquia/reservoir-project (1.0.0-alpha1)
  - Installing acquia/reservoir-project (1.0.0-alpha1)
    Loading from cache

Created project in reservoir
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - 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.2.3)
    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)
    Downloading: 100%         

  - 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 8325d17)
    Cloning 8325d172e1d6880aa24073f8f751ef089282cf9a 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)

  - Installing drupal/openapi (dev-1.x e8a82f8)
    Cloning e8a82f87dbbb83dc89f9455f7a2e5ba6c6d2cdff 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

Then I cleared the cache:

$ composer clear-cache
Clearing cache (cache-dir): /Users/wim.leers/.composer/cache
Clearing cache (cache-files-dir): /Users/wim.leers/.composer/cache/files
Clearing cache (cache-repo-dir): /Users/wim.leers/.composer/cache/repo
Clearing cache (cache-vcs-dir): /Users/wim.leers/.composer/cache/vcs
All caches cleared.
wim.leers at acquia in /tmp

And re-installed:

$ rm -rf reservoir
wim.leers at acquia in /tmp
$ composer create-project acquia/reservoir-project reservoir --stability=alpha
Installing acquia/reservoir-project (1.0.0-alpha1)
  - Installing acquia/reservoir-project (1.0.0-alpha1)
    Downloading: 100%         

Created project in reservoir
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing drupal-composer/drupal-scaffold (2.3.0)
    Downloading: 100%         

  - Installing composer/installers (v1.3.0)
    Downloading: 100%         

  - Installing cweagans/composer-patches (1.6.1)
    Downloading: 100%         

No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Installing psr/http-message (1.0.1)
    Downloading: 100%         

  - Installing paragonie/random_compat (v2.0.10)
    Downloading: 100%         

  - Installing lcobucci/jwt (3.2.1)
    Downloading: 100%         

  - Installing league/event (2.1.2)
    Downloading: 100%         

  - Installing league/oauth2-server (5.1.3)
    Downloading: 100%         

  - Installing zendframework/zend-stdlib (3.1.0)
    Downloading: 100%         

  - Installing zendframework/zend-escaper (2.5.2)
    Downloading: 100%         

  - Installing zendframework/zend-feed (2.8.0)
    Downloading: 100%         

  - Installing zendframework/zend-diactoros (1.4.0)
    Downloading: 100%         

  - Installing twig/twig (v1.34.3)
    Downloading: 100%         

  - Installing symfony/polyfill-mbstring (v1.4.0)
    Downloading: 100%         

  - Installing symfony/translation (v2.8.22)
    Downloading: 100%         

  - Installing ircmaxell/password-compat (v1.0.4)
    Downloading: 100%         

  - Installing symfony/polyfill-php55 (v1.4.0)
    Downloading: 100%         

  - Installing symfony/polyfill-php54 (v1.4.0)
    Downloading: 100%         

  - Installing symfony/http-foundation (v2.8.22)
    Downloading: 100%         

  - Installing symfony/psr-http-message-bridge (v1.0.0)
    Downloading: 100%         

  - Installing symfony/polyfill-iconv (v1.4.0)
    Downloading: 100%         

  - Installing psr/log (1.0.2)
    Downloading: 100%         

  - Installing symfony/debug (v2.8.22)
    Downloading: 100%         

  - Installing symfony/event-dispatcher (v2.8.22)
    Downloading: 100%         

  - Installing symfony/http-kernel (v2.8.22)
    Downloading: 100%         

  - Installing symfony/routing (v2.8.22)
    Downloading: 100%         

  - Installing symfony-cmf/routing (1.4.1)
    Downloading: 100%         

  - Installing stack/builder (v1.0.4)
    Downloading: 100%         

  - Installing masterminds/html5 (2.2.2)
    Downloading: 100%         

  - Installing guzzlehttp/psr7 (1.4.2)
    Downloading: 100%         

  - Installing guzzlehttp/promises (v1.3.1)
    Downloading: 100%         

  - Installing guzzlehttp/guzzle (6.2.3)
    Downloading: 100%         

  - Installing doctrine/lexer (v1.0.1)
    Downloading: 100%         

  - Installing egulias/email-validator (1.2.14)
    Downloading: 100%         

  - Installing easyrdf/easyrdf (0.9.1)
    Downloading: 100%         

  - Installing doctrine/inflector (v1.1.0)
    Downloading: 100%         

  - Installing doctrine/collections (v1.4.0)
    Downloading: 100%         

  - Installing doctrine/cache (v1.6.1)
    Downloading: 100%         

  - Installing doctrine/annotations (v1.2.7)
    Downloading: 100%         

  - Installing doctrine/common (v2.7.2)
    Downloading: 100%         

  - Installing composer/semver (1.4.2)
    Downloading: 100%         

  - Installing asm89/stack-cors (1.1.0)
    Downloading: 100%         

  - Installing symfony/yaml (v2.8.22)
    Downloading: 100%         

  - Installing symfony/validator (v2.8.22)
    Downloading: 100%         

  - Installing symfony/serializer (v2.8.22)
    Downloading: 100%         

  - Installing symfony/process (v2.8.22)
    Downloading: 100%         

  - Installing symfony/dependency-injection (v2.8.22)
    Downloading: 100%         

  - Installing symfony/console (v2.8.22)
    Downloading: 100%         

  - Installing symfony/polyfill-apcu (v1.4.0)
    Downloading: 100%         

  - Installing symfony/class-loader (v2.8.22)
    Downloading: 100%         

  - Installing drupal/core (8.3.4)
    Downloading: 100%         

  - 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)
    Downloading: 100%         

  - 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)
    Downloading: 100%         

  - Installing drupal/schemata (dev-1.x 8325d17)
    Cloning 8325d172e1d6880aa24073f8f751ef089282cf9a 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)

  - Installing drupal/openapi (dev-1.x e8a82f8)
    Cloning e8a82f87dbbb83dc89f9455f7a2e5ba6c6d2cdff from cache

  - Installing acquia/reservoir (1.0.0-alpha1)
    Downloading: 100%         

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

Still works. I suggest you composer clear-cache and try again. I can't reproduce this right now in any case. :(

JakeWilund commented 7 years ago

I ran composer clear-cache and received the same error. Here is my composer version: Composer version 1.4.2 2017-05-17 08:17:52

dbt102 commented 7 years ago

I shut down my MBP.

Got a coffee.

Restarted everything ... and works fine now.

nice