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

fix(core,cx-api): docker bundling fails during tests on macOS #10620

Merged
merged 2 commits into from
Oct 1, 2020

Conversation

jogold
Copy link
Contributor

@jogold jogold commented Oct 1, 2020

When running unit tests outdir defaults to a temporary directory in
the system temp directory. On macOS os.tmpdir() is a symlink. In
v1.61.0 we changed the bundling directory to be a directory inside
outdir (cdk.out). This makes Docker bundling fail during tests.

Fix it by using fs.realpathSync.

Closes #10262


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

When running unit tests `outdir` defaults to a temporary directory in
the system temp directory. On macOS `os.tmpdir()` is a symlink so
bundling in Docker fails.

Fix it by using `fs.realpathSync`.

Closes aws#10262
@jogold
Copy link
Contributor Author

jogold commented Oct 1, 2020

@eladb

@mergify
Copy link
Contributor

mergify bot commented Oct 1, 2020

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
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 0fc0dc7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Oct 1, 2020

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

@mergify mergify bot merged commit 0331508 into aws:master Oct 1, 2020
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] Bundling code fails with Docker error 125 (wrong flag provided) starting from 1.61.0
3 participants