From 8cd777b3594c206a3100577aad3bf1eb3e3f9631 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Tue, 17 Dec 2024 16:04:25 -0500 Subject: [PATCH] fix build attempt --- .github/workflows/build.yml | 2 + lavamoat/build-webpack/policy.json | 201 +++++++++++++++++++---------- 2 files changed, 137 insertions(+), 66 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a29bd07192..0790c4c0e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,6 +58,8 @@ jobs: - name: Set IS_TESTING=true run: | sed -i 's/IS_TESTING.*/IS_TESTING=true/g' .env + - name: Yarn setup again + run: yarn setup - name: Fetch networks run: yarn fetch:networks - name: Build the extension diff --git a/lavamoat/build-webpack/policy.json b/lavamoat/build-webpack/policy.json index bd06d39e77..0380697710 100644 --- a/lavamoat/build-webpack/policy.json +++ b/lavamoat/build-webpack/policy.json @@ -11,8 +11,8 @@ }, "@testing-library/react>@testing-library/dom>@babel/code-frame>@babel/highlight": { "packages": { - "@testing-library/react>@testing-library/dom>@babel/code-frame>@babel/highlight>@babel/helper-validator-identifier": true, "@testing-library/react>@testing-library/dom>@babel/code-frame>@babel/highlight>chalk": true, + "jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-validator-identifier": true, "react>loose-envify>js-tokens": true } }, @@ -536,12 +536,12 @@ "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/parser": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>gensync": true, "eslint>debug": true, "file-loader>loader-utils>json5": true, "jest>@jest/core>@jest/transform>convert-source-map": true, "jest>@jest/core>jest-snapshot>@babel/generator": true, + "jest>@jest/core>jest-snapshot>@babel/types": true, "semver": true } }, @@ -614,10 +614,10 @@ "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-split-export-declaration": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types>@babel/helper-validator-identifier": true + "jest>@jest/core>jest-snapshot>@babel/types": true, + "jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-validator-identifier": true } }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-module-imports": { @@ -625,24 +625,138 @@ "assert": true }, "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true + "jest>@jest/core>jest-snapshot>@babel/types": true } }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-simple-access": { "packages": { - "jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": true + "jest>@jest/core>jest-snapshot>@babel/types": true } }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/helper-split-export-declaration": { "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": true + "jest>@jest/core>jest-snapshot>@babel/types": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse": { + "globals": { + "console.log": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-environment-visitor": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/parser": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types": true, + "eslint>debug": true, + "lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-function-name": true, + "lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-hoist-variables": true, + "lavamoat>lavamoat-tofu>@babel/traverse>globals": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame": { + "globals": { + "console.warn": true, + "process.emitWarning": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk": true, + "lavamoat>@babel/highlight": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk": { + "globals": { + "process.env.TERM": true, + "process.platform": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>escape-string-regexp": true, + "supports-color": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles": { + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles>color-convert": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles>color-convert": { + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/code-frame>chalk>ansi-styles>color-convert>color-name": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator": { + "globals": { + "console.error": true, + "console.warn": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@babel/types": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping": true, + "jest>@jest/core>jest-snapshot>@babel/generator>@jridgewell/gen-mapping": true, + "jest>@jest/core>jest-snapshot>@babel/generator>jsesc": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@babel/types": { + "globals": { + "console.warn": true, + "process.env.BABEL_TYPES_8_BREAKING": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@babel/types>@babel/helper-validator-identifier": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types>@babel/helper-string-parser": true, + "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping": { + "globals": { + "define": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": true, + "webpack>terser-webpack-plugin>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": { + "globals": { + "Buffer": true, + "TextDecoder": true, + "define": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration": { + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": { + "globals": { + "console.warn": true, + "process.env.BABEL_TYPES_8_BREAKING": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-string-parser": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-validator-identifier": true, + "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true + } + }, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types": { + "globals": { + "console.warn": true, + "process.env.BABEL_TYPES_8_BREAKING": true + }, + "packages": { + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types>@babel/helper-string-parser": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helper-module-transforms>@babel/traverse>@babel/types>@babel/helper-validator-identifier": true, + "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true } }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers": { "packages": { "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": true, + "jest>@jest/core>jest-snapshot>@babel/types": true } }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse": { @@ -711,8 +825,8 @@ "process.env.BABEL_TYPES_8_BREAKING": true }, "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/generator>@babel/types>@babel/helper-string-parser": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/generator>@babel/types>@babel/helper-validator-identifier": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/types>@babel/helper-string-parser": true, + "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/traverse>@babel/types>@babel/helper-validator-identifier": true, "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true } }, @@ -743,22 +857,11 @@ "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true } }, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types": { - "globals": { - "console.trace": true, - "process.env.BABEL_TYPES_8_BREAKING": true - }, - "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types>@babel/helper-string-parser": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/helpers>@babel/types>@babel/helper-validator-identifier": true, - "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true - } - }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/template": { "packages": { "@testing-library/react>@testing-library/dom>@babel/code-frame": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/parser": true, - "jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": true + "jest>@jest/core>jest-snapshot>@babel/types": true } }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse": { @@ -768,13 +871,13 @@ "packages": { "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/code-frame": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/generator": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-environment-visitor": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/parser": true, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/types": true, "eslint>debug": true, + "lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-environment-visitor": true, "lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-function-name": true, "lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-hoist-variables": true, + "lavamoat>lavamoat-tofu>@babel/traverse>@babel/helper-split-export-declaration": true, "lavamoat>lavamoat-tofu>@babel/traverse>globals": true } }, @@ -837,22 +940,6 @@ "define": true } }, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration": { - "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": true - } - }, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types": { - "globals": { - "console.warn": true, - "process.env.BABEL_TYPES_8_BREAKING": true - }, - "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-string-parser": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/helper-split-export-declaration>@babel/types>@babel/helper-validator-identifier": true, - "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true - } - }, "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/traverse>@babel/types": { "globals": { "console.warn": true, @@ -864,17 +951,6 @@ "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true } }, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types": { - "globals": { - "console.trace": true, - "process.env.BABEL_TYPES_8_BREAKING": true - }, - "packages": { - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types>@babel/helper-string-parser": true, - "eslint-config-rainbow>eslint-import-resolver-babel-module>@babel/core>@babel/types>@babel/helper-validator-identifier": true, - "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true - } - }, "eslint>@nodelib/fs.walk": { "builtin": { "events.EventEmitter": true, @@ -1317,20 +1393,9 @@ "console.error": true }, "packages": { - "jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": true, "jest>@jest/core>jest-snapshot>@babel/generator>@jridgewell/gen-mapping": true, - "jest>@jest/core>jest-snapshot>@babel/generator>jsesc": true - } - }, - "jest>@jest/core>jest-snapshot>@babel/generator>@babel/types": { - "globals": { - "console.trace": true, - "process.env.BABEL_TYPES_8_BREAKING": true - }, - "packages": { - "jest>@jest/core>jest-snapshot>@babel/generator>@babel/types>@babel/helper-string-parser": true, - "jest>@jest/core>jest-snapshot>@babel/generator>@babel/types>@babel/helper-validator-identifier": true, - "lavamoat>lavamoat-core>@babel/types>to-fast-properties": true + "jest>@jest/core>jest-snapshot>@babel/generator>jsesc": true, + "jest>@jest/core>jest-snapshot>@babel/types": true } }, "jest>@jest/core>jest-snapshot>@babel/generator>@jridgewell/gen-mapping": { @@ -1354,6 +1419,10 @@ } }, "jest>@jest/core>jest-snapshot>@babel/types": { + "globals": { + "console.trace": true, + "process.env.BABEL_TYPES_8_BREAKING": true + }, "packages": { "jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-string-parser": true, "jest>@jest/core>jest-snapshot>@babel/types>@babel/helper-validator-identifier": true,