Skip to content

Conversation

buismaarten
Copy link
Contributor

@buismaarten buismaarten commented Dec 22, 2022

I'm setting up the spatie/dns package inside a Laravel Sail container. It uses the ExecutableFinder class of the Symfony Process component that uses the PATH environment variable to search the dig executable.

This change fixes the issue by passing the environment variable using the artisan serve command that Laravel Sail uses. See: https://github.com/laravel/sail/blob/122af16408841cc750095a4ca3193751eed3f673/runtimes/8.1/supervisord.conf#L8

Edit:
All environment variables are passed through when artisan serve --no-reload is used, but this would not be a ideal solution.

@taylorotwell taylorotwell merged commit 02e27f8 into laravel:9.x Dec 23, 2022
@buismaarten buismaarten deleted the patch-1 branch December 23, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants