mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01: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:
parent
3cc53a11b6
commit
18a304199c
@ -4,6 +4,11 @@ const yargs = require('yargs/yargs');
|
||||
const { hideBin } = require('yargs/helpers');
|
||||
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) => {
|
||||
console.error('Policy generation failed.', error);
|
||||
process.exitCode = 1;
|
||||
@ -20,7 +25,7 @@ async function start() {
|
||||
.option('build-types', {
|
||||
alias: ['t'],
|
||||
choices: Object.values(BuildType),
|
||||
default: Object.values(BuildType),
|
||||
default: stableBuildTypes,
|
||||
demandOption: true,
|
||||
description: 'The build type(s) to generate policy files for.',
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user