PackageVersions: Probable race condition in post-install hooks

This package is a a sub-sub dependency in sentry/sentry, and users are reporting issues while using the Laravel Sentry integration (sentry/sentry-laravel).

Users are reporting issues while installing: https://github.com/getsentry/sentry-laravel/issues/274 & https://github.com/getsentry/sentry-laravel/issues/284

As I already said in https://github.com/getsentry/sentry-laravel/issues/274#issuecomment-536901862:

The problem seems to be that the Illuminate\Foundation\ComposerScripts::postAutoloadDump is running BEFORE the ocramius/package-versions, so when that package is used, it’s NOT ready yet.

Is there any way to raise the priority of this script, since it has no dependencies other that having the composer.lock ready and readable?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 20 (16 by maintainers)

Most upvoted comments

@MrMadClown no clue on how to solve this, sorry

Any Idea how to solve this Issue? We run into this problem in our CI environment, where we start without a vendor directory every time. Which basically is the solution from getsentry/sentry-laravel#274.