1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00

Fix valet bin dir linking for ARM / M1 macs

Fixes #1023

Ref #992
This commit is contained in:
Chris Brown
2021-01-18 12:19:56 -05:00
parent 35676120a7
commit 383c1d009f
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ class Valet
{
var $cli, $files;
var $valetBin = '/usr/local/bin/valet';
var $valetBin = BREW_PREFIX.'/bin/valet';
/**
* Create a new Valet instance.
@@ -88,7 +88,7 @@ function createSudoersEntry()
{
$this->files->ensureDirExists('/etc/sudoers.d');
$this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = /usr/local/bin/valet *
$this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = '.BREW_PREFIX.'/bin/valet *
%admin ALL=(root) NOPASSWD:SETENV: VALET'.PHP_EOL);
}

View File

@@ -372,7 +372,7 @@
Thus, you may need to delete things from your <info>~/.composer/composer.json</info> file before running <info>composer global update</info> successfully.
Then to finish removing any Composer fragments of Valet:
Run <info>composer global remove laravel/valet</info>
and then <info>rm /usr/local/bin/valet</info> to remove the Valet bin link if it still exists.
and then <info>rm ".BREW_PREFIX."/bin/valet</info> to remove the Valet bin link if it still exists.
Optional:
- <info>brew list --formula</info> will show any other Homebrew services installed, in case you want to make changes to those as well.
- <info>brew doctor</info> can indicate if there might be any broken things left behind.