Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix automated Gitpod dev setup by installing dependencies first #14896

Closed
wants to merge 1 commit into from

Conversation

jankeromnes
Copy link

@jankeromnes jankeromnes commented May 27, 2021

Hello AWS friends! 👋

I'm not sure when this broke, but when I open AWS CDK in Gitpod, I now get this error:

gitpod /workspace/aws-cdk $ yarn build --skip-test --no-bail --skip-prereqs --skip-compat
yarn run v1.22.5
$ node ./scripts/check-yarn-lock.js
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '@lerna/project'

I noticed in your CONTRIBUTING.md that yarn install should be run after cloning the repository. Adding yarn install to the init task seems to fix this error. 🙌

I've also made a few minor drive-by changes:

  • Re-order prebuilds config (it's usually near the bottom of .gitpod.yml)
  • Don't pin the dbaeumer.vscode-eslint extension version (no longer needed / unpinned now auto-installs the latest release)

Please take a look.

@gitpod-io
Copy link

gitpod-io bot commented May 27, 2021

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: cc73a95
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the help (again) @jankeromnes!

I'm actually discussing this with @njlynch on how exactly to proceed - I think a better solution would be to stop running check-yarn-lock.js as a a pre-build step.

I will keep you posted!

njlynch added a commit that referenced this pull request Jun 1, 2021
Having this check in the prebuild is causing issues with the way we set up
GitPod integration. Our build step actually does install as well, so our build
is really a build+install, so it makes sense to do the check here anyway.

fixes #14896
@mergify mergify bot closed this in #14938 Jun 1, 2021
mergify bot pushed a commit that referenced this pull request Jun 1, 2021
Having this check in the prebuild is causing issues with the way we set up
GitPod integration. Our build step actually does install as well, so our build
is really a build+install, so it makes sense to do the check here anyway.

fixes #14896


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
Having this check in the prebuild is causing issues with the way we set up
GitPod integration. Our build step actually does install as well, so our build
is really a build+install, so it makes sense to do the check here anyway.

fixes aws#14896


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants