crd2pulumi icon indicating copy to clipboard operation
crd2pulumi copied to clipboard

Duplicate crd packages

Open keithharvey opened this issue 4 years ago • 1 comments

Context

Hey, great work on crd2pulumi. One issue I just hit on trying to pulumi up after I imported my second crd2pulumi converted library was that both node packages had the default nodeName of "crd".

This resulted in an "incorrect semver" error because it tried to compare the version of the first library (which was an empty string by default) and the newly converted library (which also was an empty string) and node semver choked. Giving them both unique nodeName parameters cleared it up.

Possible solutions

  • Make at least 1 language target required. So users of crd2pulumi must specify nodejs and nodejsPath and nodeName.
  • attach a guid to the default "crd"

keithharvey avatar Jul 22 '21 17:07 keithharvey

Added to epic https://github.com/pulumi/home/issues/3431

cleverguy25 avatar Aug 09 '24 23:08 cleverguy25