Skip to content

Instantly share code, notes, and snippets.

@boneskull
Created August 25, 2023 22:19
Show Gist options
  • Save boneskull/81d6630db9c6af9ece1de068ff1922e7 to your computer and use it in GitHub Desktop.
Save boneskull/81d6630db9c6af9ece1de068ff1922e7 to your computer and use it in GitHub Desktop.
lavamoat node v20 failure
created test project directory at "/tmp/tmp-2535-cZIfcQIiADVH"
✘ [fail]: arguments › arguments - lavamoat command aliases work - advanced Unexpected error in scenario: template scenario - Error: Error while installing devDeps:
error lavamoat-core@14.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
✔ arguments › arguments - invalid lavamoat commands fail (10.4s)
created test project directory at "/tmp/tmp-2535-7a8xvUcm0uU4"
created test project directory at "/tmp/tmp-2535-ggExY0kIGZks"
✘ [fail]: basic › basic - browserify bundle doesnt inject global in deps Rejected promise returned by test
✘ [fail]: basic › basic - lavamoat policy and bundle Rejected promise returned by test
✘ [fail]: basic › basic - lavamoat bundle without prelude Rejected promise returned by test
created test project directory at "/tmp/tmp-2535-z8UCMFLAzeKa"
created test project directory at "/tmp/tmp-2535-c9P7BtlQO8e9"
✔ basic › basic - browserify bundle doesnt inject global (9s)
- [skip] factor › package factor bundle
created test project directory at "/tmp/tmp-2535-qE43BPFL2BUt"
✘ [fail]: generatePolicy › generatePolicy - empty policy Rejected promise returned by test
✘ [fail]: generatePolicy › generatePolicy - basic policy Rejected promise returned by test
✘ [fail]: generatePolicy › generatePolicy - ignore various refs Rejected promise returned by test
✘ [fail]: generatePolicy › generatePolicy - policy ignores global refs Rejected promise returned by test
✘ [fail]: generatePolicy › generatePolicy - policy ignores global refs when properties are not accessed Rejected promise returned by test
✘ [fail]: generatePolicy › generatePolicy - policy ignores global refs accessed with allowlist items Rejected promise returned by test
created test project directory at "/tmp/tmp-2535-B57lfHKAwHYX"
created test project directory at "/tmp/tmp-2535-18R83r0nMLqP"
created test project directory at "/tmp/tmp-2535-JYu4t4ug3SjI"
created test project directory at "/tmp/tmp-2535-pwLhyjPKpTUc"
created test project directory at "/tmp/tmp-2535-EFMKmvcrGG0Y"
created test project directory at "/tmp/tmp-2535-dCJqBnFncObm"
✘ [fail]: generatePolicy › generatePolicy - policy endows "process" properly Rejected promise returned by test
created test project directory at "/tmp/tmp-2535-MlWy2AAKO7mq"
✘ [fail]: globalRef › globalRef - has only the expected global circular refs Unexpected error in scenario: globalRef - has only the expected global circular refs - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
✘ [fail]: globalRef › globalRef - globalRef - check default containment Unexpected error in scenario: globalRef - check default containment - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
✘ [fail]: globalRef › globalRef - ensure endowments are accessible on globals Unexpected error in scenario: globalRef - ensure endowments are accessible on globals - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
created test project directory at "/tmp/tmp-2535-0VMQx5eZwNjx"
created test project directory at "/tmp/tmp-2535-Ezew3dCg2k0w"
created test project directory at "/tmp/tmp-2535-WCgPpIt32JDo"
✘ [fail]: globalWrites › globalWrites - two deps should be able to read each others globals Unexpected error in scenario: globalWrites - two deps should be able to read each others globals - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
created test project directory at "/tmp/tmp-2535-tzYHJQeyRxo4"
✘ [fail]: globals › globals - process is properly injected Unexpected error in scenario: template scenario - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
(node:5396) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ lavamoatNode › lavamoat-node compat - bundle works under lavamoat node (2.1s)
Removing intrinsics.%ArrayPrototype%.toReversed
Removing intrinsics.%ArrayPrototype%.toSorted
Removing intrinsics.%ArrayPrototype%.toSpliced
Removing intrinsics.%ArrayPrototype%.with
Removing intrinsics.%ArrayPrototype%.@@unscopables.toReversed
Removing intrinsics.%ArrayPrototype%.@@unscopables.toSorted
Removing intrinsics.%ArrayPrototype%.@@unscopables.toSpliced
Removing intrinsics.%StringPrototype%.isWellFormed
Removing intrinsics.%StringPrototype%.toWellFormed
Removing intrinsics.%RegExpPrototype%.unicodeSets
Removing intrinsics.%TypedArrayPrototype%.toReversed
Removing intrinsics.%TypedArrayPrototype%.toSorted
Removing intrinsics.%TypedArrayPrototype%.with
created test project directory at "/tmp/tmp-2535-nTD1Kl589XBH"
✘ [fail]: policy › policy - default policy path is generated with autoconfig if path is not specified Rejected promise returned by test
✘ [fail]: policy › Policy is applied if not specified and already exists at default path Unexpected error in scenario: template scenario - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
✘ [fail]: policy › Policy - Applies writeAutoPolicyDebug plugin option and dumps module object to disk Rejected promise returned by test
✘ [fail]: policy › Policy - watchify listens for policy file changes Rejected promise returned by test
created test project directory at "/tmp/tmp-2535-FqyZMqeWpeAY"
created test project directory at "/tmp/tmp-2535-Vl6ZGDL4Ebh3"
created test project directory at "/tmp/tmp-2535-070FF9Nghbzs"
Running Browserify Scenario: autogen - react-devtools-core hasOwnProperty
created test project directory at "/tmp/tmp-2535-9cfOwgI6Aytt"
✘ [fail]: runScenarios › Run scenarios with precompiled modules Unexpected error in scenario: autogen - react-devtools-core hasOwnProperty - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
arguments › arguments - lavamoat command aliases work - advanced
Unexpected error in scenario: template scenario - Error: Error while installing devDeps:
error lavamoat-core@14.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/arguments.spec.js:24:3
basic › basic - browserify bundle doesnt inject global in deps
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async test/basic.spec.js:33:33
basic › basic - lavamoat policy and bundle
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async test/basic.spec.js:49:33
basic › basic - lavamoat bundle without prelude
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async test/basic.spec.js:72:33
generatePolicy › generatePolicy - empty policy
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:16:18
generatePolicy › generatePolicy - basic policy
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:28:18
generatePolicy › generatePolicy - ignore various refs
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:50:18
generatePolicy › generatePolicy - policy ignores global refs
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:71:18
generatePolicy › generatePolicy - policy ignores global refs when properties are not accessed
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:93:18
generatePolicy › generatePolicy - policy ignores global refs accessed with allowlist items
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:109:18
generatePolicy › generatePolicy - policy endows "process" properly
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async createBundleForScenario (test/util.js:206:39)
› async autoConfigForScenario (test/util.js:96:25)
› async test/generatePolicy.spec.js:137:18
globalRef › globalRef - has only the expected global circular refs
Unexpected error in scenario: globalRef - has only the expected global circular refs - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/globalRef.spec.js:28:3
globalRef › globalRef - globalRef - check default containment
Unexpected error in scenario: globalRef - check default containment - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/globalRef.spec.js:57:3
globalRef › globalRef - ensure endowments are accessible on globals
Unexpected error in scenario: globalRef - ensure endowments are accessible on globals - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/globalRef.spec.js:118:3
globalWrites › globalWrites - two deps should be able to read each others globals
Unexpected error in scenario: globalWrites - two deps should be able to read each others globals - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/globalWrites.spec.js:48:3
globals › globals - process is properly injected
Unexpected error in scenario: template scenario - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/globals.spec.js:28:3
policy › policy - default policy path is generated with autoconfig if path is not specified
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async test/policy.spec.js:23:25
policy › Policy is applied if not specified and already exists at default path
Unexpected error in scenario: template scenario - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/policy.spec.js:55:3
policy › Policy - Applies writeAutoPolicyDebug plugin option and dumps module object to disk
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async test/policy.spec.js:65:25
policy › Policy - watchify listens for policy file changes
Rejected promise returned by test. Reason:
Error {
message: `Error while installing devDeps:␊
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"␊
error Found incompatible module.␊
packages: browserify@^17,lavamoat-browserify`,
}
› packages: browserify@^17,lavamoat-browserify
› prepareBrowserifyScenarioOnDisk (test/util.js:185:11)
› async test/policy.spec.js:81:37
runScenarios › Run scenarios with precompiled modules
Unexpected error in scenario: autogen - react-devtools-core hasOwnProperty - Error: Error while installing devDeps:
error @lavamoat/lavapack@5.2.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0 <19.0.0". Got "20.5.1"
error Found incompatible module.
packages: browserify@^17,lavamoat-browserify
› Object.checkError (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:61:11)
› Object.checkPostRun (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:50:22)
› runAndTestScenario (/home/runner/work/LavaMoat/LavaMoat/packages/core/test/util.js:472:18)
› async test/runScenarios.spec.js:9:5
21 tests failed
1 test skipped
npm ERR! Lifecycle script `test:ava` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: lavamoat-browserify@15.7.1
npm ERR! at location: /home/runner/work/LavaMoat/LavaMoat/packages/browserify
npm ERR! Lifecycle script `test` failed with error:
npm ERR! Error: command failed
> lavamoat-core@14.2.1 test
> ava
npm ERR! in workspace: lavamoat-browserify@15.7.1
npm ERR! at location: /home/runner/work/LavaMoat/LavaMoat/packages/browserify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment