Skip to content

Conversation

@isker
Copy link
Contributor

@isker isker commented May 18, 2025

Users may override the executable used (instead of docker) by setting the CDK_DOCKER environment variable, but the message of the error thrown when such an executable does not exist was not similarly dynamic. Align the contents of the message with the executable invoked.

Fixes #282.


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

Users may override the executable used (instead of `docker`) by setting
the CDK_DOCKER environment variable, but the message of the error thrown
when such a command does not exist was not similarly dynamic. Align the
contents of the message with the executable invoked.

Fixes aws#282.

Signed-off-by: Ian Kerins <git@isk.haus>
@mrgrain mrgrain temporarily deployed to integ-approval May 19, 2025 08:50 — with GitHub Actions Inactive
@mrgrain mrgrain changed the title fix: indicate correct docker command that failed to execute fix(cdk-assets): indicate correct docker command that failed to execute May 19, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.98%. Comparing base (b69d41f) to head (fe6f36e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #504   +/-   ##
=======================================
  Coverage   78.98%   78.98%           
=======================================
  Files          46       46           
  Lines        6994     6994           
  Branches      776      776           
=======================================
  Hits         5524     5524           
  Misses       1452     1452           
  Partials       18       18           
Flag Coverage Δ
suite.unit 78.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue May 19, 2025
Merged via the queue into aws:main with commit ea4ba36 May 19, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(aws-cdk-cli): Improve error message when 'CDK_DOCKER' environment variable is set

4 participants