Skip to content

fix(lambda-nodejs): unstable asset hashes with bundling.nodeModules#15229

Merged
mergify[bot] merged 2 commits intoaws:masterfrom
jogold:lambda-nodejs-npm-ci
Jun 23, 2021
Merged

fix(lambda-nodejs): unstable asset hashes with bundling.nodeModules#15229
mergify[bot] merged 2 commits intoaws:masterfrom
jogold:lambda-nodejs-npm-ci

Conversation

@jogold
Copy link
Copy Markdown
Contributor

@jogold jogold commented Jun 21, 2021

Use npm ci instead of npm install to avoid npm injecting absolute
paths in package.json files of installed modules. The absolute paths
impact the asset hash and generate unnecessary redeployments.

Closes #15023


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Use `npm ci` instead of `npm install` to avoid `npm` injecting absolute
paths `package.json` files of installed modules.

Closes aws#15023
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jun 21, 2021

@jogold
Copy link
Copy Markdown
Contributor Author

jogold commented Jun 21, 2021

@eladb @nija-at

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 23, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit 4b5418c into aws:master Jun 23, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 23, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@jogold jogold deleted the lambda-nodejs-npm-ci branch June 23, 2021 18:31
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…ws#15229)

Use `npm ci` instead of `npm install` to avoid `npm` injecting absolute
paths in `package.json` files of installed modules. The absolute paths
impact the asset hash and generate unnecessary redeployments.

Closes aws#15023


----

*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.

(aws-lambda-nodejs): redeploy triggers when no code changed although root directory changed

3 participants