docker(install): don't upgrade unrelated packages when installing lima
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -136,9 +136,16 @@ export class Install {
|
|||||||
await io.mkdirP(limaDir);
|
await io.mkdirP(limaDir);
|
||||||
const dockerHost = `unix://${limaDir}/docker.sock`;
|
const dockerHost = `unix://${limaDir}/docker.sock`;
|
||||||
|
|
||||||
|
// avoid brew to upgrade unrelated packages.
|
||||||
|
let envs = Object.assign({}, process.env, {
|
||||||
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: '1'
|
||||||
|
}) as {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
|
||||||
if (!(await Install.limaInstalled())) {
|
if (!(await Install.limaInstalled())) {
|
||||||
await core.group('Installing lima', async () => {
|
await core.group('Installing lima', async () => {
|
||||||
await Exec.exec('brew', ['install', 'lima']);
|
await Exec.exec('brew', ['install', 'lima'], {env: envs});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +175,7 @@ export class Install {
|
|||||||
|
|
||||||
// lima might already be started on the runner so env var added in download
|
// lima might already be started on the runner so env var added in download
|
||||||
// method is not expanded to the running process.
|
// method is not expanded to the running process.
|
||||||
const envs = Object.assign({}, process.env, {
|
envs = Object.assign({}, envs, {
|
||||||
PATH: `${this.toolDir}:${process.env.PATH}`
|
PATH: `${this.toolDir}:${process.env.PATH}`
|
||||||
}) as {
|
}) as {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user