1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Skip generating LavaMoat policy for MMI (#18416)

The MMI build type is still a work in progress, and should not be
expected to build successfully yet, so we haven't committed a LavaMoat
policy to the repository for it yet. The policy update script has been
updated to skip MMI by default for now; we can include it after that
build has reached a point where we are confident it will build
successfully.
This commit is contained in:
Mark Stacey 2023-04-03 12:42:24 -02:30 committed by GitHub
parent 3cc53a11b6
commit 18a304199c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,11 @@ const yargs = require('yargs/yargs');
const { hideBin } = require('yargs/helpers'); const { hideBin } = require('yargs/helpers');
const { BuildType } = require('./lib/build-type'); const { BuildType } = require('./lib/build-type');
const stableBuildTypes = Object.values(BuildType).filter(
// Skip generating policy for MMI until that build has stabilized
(buildType) => buildType !== BuildType.mmi,
);
start().catch((error) => { start().catch((error) => {
console.error('Policy generation failed.', error); console.error('Policy generation failed.', error);
process.exitCode = 1; process.exitCode = 1;
@ -20,7 +25,7 @@ async function start() {
.option('build-types', { .option('build-types', {
alias: ['t'], alias: ['t'],
choices: Object.values(BuildType), choices: Object.values(BuildType),
default: Object.values(BuildType), default: stableBuildTypes,
demandOption: true, demandOption: true,
description: 'The build type(s) to generate policy files for.', description: 'The build type(s) to generate policy files for.',
}) })