Skip to content

Re-enable convertProject.test.ts test #2164

Open
@ansgarm

Description

@ansgarm

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When releasing cdktf 0.13.0 in #2162 this test did fail because cdktf@latest pointed to 0.12.3 while the cdktf-cli used in that test uses the repo local package with 0.13.0:

Command failed: npm install
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cdktf-cli'
npm ERR! notarget

As a first try at fixing this, I tried installing cdktf from the local package as well, however this failed with:

.gen/providers/docker/provider/index.ts:123:11 - error TS2345: Argument of type 'import("/private/var/folders/19/0g2813wd0g77r4dvy2_xtmfw0000gq/T/cdktf-converted.EE1ipB/node_modules/constructs/lib/construct").Construct' is not assignable to parameter of type 'import("/Users/ansgar/projects/hashicorp/terraform-cdk/node_modules/constructs/lib/construct").Construct'.

For testing this, you can change the version to e.g. 0.14.0 and that will re-create the issue we just encountered in a PR.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-processImprovements to how CDK for Terraform is developed and builtenhancementNew feature or requestpriority/important-longtermMedium priority, to be worked on within the following 1-2 business quarters.size/smallestimated < 1 daytech-debttesting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions