Skip to content

Commit

Permalink
add --quiet to brew install to avoid '... is already installed an…
Browse files Browse the repository at this point in the history
…d up-to-date' warning
  • Loading branch information
rhysd committed Sep 15, 2024
1 parent 326d7d7 commit 3ba23bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/install_macos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function homebrewBinDir(): string {

async function installVimStable(): Promise<Installed> {
core.debug('Installing stable Vim on macOS using Homebrew');
await exec('brew', ['install', 'macvim']);
await exec('brew', ['install', 'macvim', '--quiet']);
return {
executable: 'vim',
binDir: homebrewBinDir(),
Expand All @@ -20,7 +20,7 @@ async function installVimStable(): Promise<Installed> {

async function installNeovimStable(): Promise<Installed> {
core.debug('Installing stable Neovim on macOS using Homebrew');
await exec('brew', ['install', 'neovim']);
await exec('brew', ['install', 'neovim', '--quiet']);
return {
executable: 'nvim',
binDir: homebrewBinDir(),
Expand Down
12 changes: 11 additions & 1 deletion src/neovim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,17 @@ export async function buildNightlyNeovim(os: Os): Promise<Installed> {
break;
case 'macos':
core.debug('Installing build dependencies via Homebrew');
await exec('brew', ['install', 'ninja', 'libtool', 'automake', 'cmake', 'pkg-config', 'gettext', 'curl']);
await exec('brew', [
'install',
'ninja',
'libtool',
'automake',
'cmake',
'pkg-config',
'gettext',
'curl',
'--quiet',
]);
break;
default:
throw new Error(`Building Neovim from source is not supported for ${os} platform`);
Expand Down

0 comments on commit 3ba23bb

Please sign in to comment.