Describe the bug
When opening the repo with GitPod, it throws the prebuild error

Expected Behavior
to prebuild correctly with no error
Current Behavior
gitpod@aws-awscdk-mork8kacwjx:/workspace/aws-cdk$ HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
[ -r /workspace/.prebuild-log-0 ] && cat /workspace/.prebuild-log-0; [ -r /workspace/.gitpod/prebuild-log-0 ] && cat /workspace/.gitpod/prebuild-log-0; true
}
{
yarn build --skip-test --no-bail --skip-prereqs --skip-compat
}; exit
gitpod@aws-awscdk-r68tfij2ejz:/workspace/aws-cdk$ {
yarn build --skip-test --no-bail --skip-prereqs --skip-compat
}; exit
yarn run v1.22.19
$ node ./scripts/check-yarn-lock.js
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module '@lerna/project'
Require stack:
- /workspace/aws-cdk/scripts/check-yarn-lock.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. (/workspace/aws-cdk/scripts/check-yarn-lock.js:17:21)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/workspace/aws-cdk/scripts/check-yarn-lock.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
exit
🤙 This task ran as a workspace prebuild
Reproduction Steps
Just open this repo with GitPod
Possible Solution
Modify the init task here
|
- init: yarn build --skip-test --no-bail --skip-prereqs --skip-compat |
to have it execute:
yarn install && ./scripts/foreach.sh yarn build
Additional Information/Context
No response
CDK CLI Version
latest
Framework Version
No response
Node.js Version
all
OS
gitpod
Language
Typescript
Language Version
No response
Other information
No response
Describe the bug
When opening the repo with GitPod, it throws the prebuild error
Expected Behavior
to prebuild correctly with no error
Current Behavior
gitpod@aws-awscdk-mork8kacwjx:/workspace/aws-cdk$ HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
Error: Cannot find module '@lerna/project'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. (/workspace/aws-cdk/scripts/check-yarn-lock.js:17:21)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/workspace/aws-cdk/scripts/check-yarn-lock.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
exit
🤙 This task ran as a workspace prebuild
Reproduction Steps
Just open this repo with GitPod
Possible Solution
Modify the init task here
aws-cdk/.gitpod.yml
Line 9 in 4e0c80f
to have it execute:
yarn install && ./scripts/foreach.sh yarn buildAdditional Information/Context
No response
CDK CLI Version
latest
Framework Version
No response
Node.js Version
all
OS
gitpod
Language
Typescript
Language Version
No response
Other information
No response