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): init templates not initialized when running the CLI from source #11731

Merged
merged 2 commits into from
Nov 29, 2020

Conversation

njlynch
Copy link
Contributor

@njlynch njlynch commented Nov 26, 2020

As part of the CDKv2 work, #11665 made the init templates version-aware
(allowing for different init templates for v1 and v2). This works when the CLI
\is run from a packaged distribution, but when run locally in development --
for example, when running cdk-integ -- the CLI was failing due to the local
version being 0.0.0, and the templates looking for a "v0" directory.

Fix the local experience by (currently) defaulting to v1 templates for local
development.


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

…ource

As part of the CDKv2 work, #11665 made the init templates version-aware
(allowing for different init templates for v1 and v2). This works when the CLI
\is run from a packaged distribution, but when run locally in development --
for example, when running `cdk-integ` -- the CLI was failing due to the local
version being 0.0.0, and the templates looking for a "v0" directory.

Fix the local experience by (currently) defaulting to v1 templates for local
development.
@gitpod-io
Copy link

gitpod-io bot commented Nov 26, 2020

@njlynch njlynch changed the title fix(core): init templates not initialized when running the CLI from s… fix(core): init templates not initialized when running the CLI from source Nov 26, 2020
@njlynch njlynch self-assigned this Nov 26, 2020
@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label Nov 26, 2020
@njlynch njlynch requested a review from a team November 26, 2020 13:48
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 26, 2020
@mergify
Copy link
Contributor

mergify bot commented Nov 29, 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
Copy link
Contributor

mergify bot commented Nov 29, 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 2e067d7 into master Nov 29, 2020
@mergify mergify bot deleted the njlynch/fixlocalcli branch November 29, 2020 11:07
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants