docker(install): don't auto update brew when installing lima

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-12-10 15:11:39 +01:00
parent 911d146f5f
commit c8a1b7a531
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -136,8 +136,9 @@ export class Install {
await io.mkdirP(limaDir);
const dockerHost = `unix://${limaDir}/docker.sock`;
// avoid brew to upgrade unrelated packages.
// avoid brew to auto update and upgrade unrelated packages.
let envs = Object.assign({}, process.env, {
HOMEBREW_NO_AUTO_UPDATE: '1',
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: '1'
}) as {
[key: string]: string;