(params: DockerResolverParameters)
| 73 | } |
| 74 | |
| 75 | export async function logUMask(params: DockerResolverParameters): Promise<string | undefined> { |
| 76 | // process.umask() is deprecated: https://nodejs.org/api/process.html#processumask |
| 77 | const { common } = params; |
| 78 | const { cliHost, output } = common; |
| 79 | if (cliHost.platform === 'win32') { |
| 80 | return undefined; |
| 81 | } |
| 82 | try { |
| 83 | const { stdout } = await runCommandNoPty({ |
| 84 | exec: cliHost.exec, |
| 85 | cmd: 'umask', |
| 86 | cwd: cliHost.cwd, |
| 87 | env: cliHost.env, |
| 88 | output, |
| 89 | print: true, |
| 90 | }); |
| 91 | return stdout.toString().trim(); |
| 92 | } catch { |
| 93 | return undefined; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | export function isBuildxCacheToInline(buildxCacheTo: string | undefined): boolean { |
| 98 | if (!buildxCacheTo) { |
no test coverage detected