前提・実現したいこと
laravel にて制作した自作アプリをherokuにデプロイする段階で、git push heroku masterを実行しましたが、
依存関係のインストールに失敗した(下記ログ)とのことで解決方法が分からなかったので
質問させて頂きます。
発生している問題・エラーメッセージ
エラーがないと思われるログを一部省略してます。
remote: Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. remote: Generating optimized autoload files remote: > Illuminate\Foundation\ComposerScripts::postAutoloadDump remote: Deprecation Notice: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /tmp/build_90ec80e4/vendor/laravel/framework/src/Illuminate/Container/Container.php:1231 (文字数制限により省略 remote: remote: remote: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 remote: ! WARNING: A post-autoload-dump script terminated with an error remote: remote: ! ERROR: Dependency installation failed! remote: ! remote: ! The 'composer install' process failed with an error. The cause remote: ! may be the download or installation of packages, or a pre- or remote: ! post-install hook (e.g. a 'post-install-cmd' item in 'scripts') remote: ! in your 'composer.json'. remote: ! remote: ! Typical error cases are out-of-date or missing parts of code, remote: ! timeouts when making external connections, or memory limits. remote: ! remote: ! Check the above error output closely to determine the cause of remote: ! the problem, ensure the code you're pushing is functioning remote: ! properly, and that all local changes are committed correctly. remote: ! remote: ! For more information on builds for PHP on Heroku, refer to remote: ! https://devcenter.heroku.com/articles/php-support remote: ! remote: ! REMINDER: the following warnings were emitted during the build; remote: ! check the details above, as they may be related to this error: remote: ! - A post-autoload-dump script terminated with an error remote: remote: ! Push rejected, failed to compile PHP app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to pure-ravine-32101. remote: To https://git.heroku.com/pure-ravine-32101.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/pure-ravine-32101.git'
試したこと
・composer updateの実行→変化なし
・heroku アプリを削除して作り直し→変化なし
remote: Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
ERROR: Dependency installation failed! とあるので
swiftmailerのパッケージがないのかと思い
composer require swiftmailer/swiftmailer
を実行→変化なし
いや、abandoned(放棄)しているんだから不要なのでは、
と思い、
composer remove swiftmailer/swiftmailer
してみるも、失敗
$ composer why swiftmailer/swiftmailer laravel/framework v6.20.44 requires swiftmailer/swiftmailer (^6.0)
とのことで今使っているlaravel6系では必要なパッケージということが分かったのですが
じゃあgit push heroku masterが通らない原因は別なのか?
と考えたところで行き詰っています。
エラーログの読み落とし等あれば教えて頂きたいです。
補足情報(FW/ツールのバージョンなど)
laravel6.20.44
php7.4.16

回答1件
あなたの回答
tips
プレビュー