Skip to content

Commit

Permalink
fix(cli): Make provider add command case insensitive for provider names
Browse files Browse the repository at this point in the history
fixes 'datadog/datadog' not working (only 'DataDog/datadog' worked previously)
  • Loading branch information
ansgarm authored and DanielMSchmidt committed Aug 23, 2022
1 parent 6744c3a commit 78903e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cdktf-cli/lib/dependencies/prebuilt-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export async function getNpmPackageName(

const entry = Object.entries(providers).find(
([, p]) =>
ProviderConstraint.fromConfigEntry(p).source === constraint.source
ProviderConstraint.fromConfigEntry(p).source.toLowerCase() ===
constraint.source.toLowerCase()
);
if (!entry) {
return undefined; // no pre-built provider found for this constraint
Expand Down

0 comments on commit 78903e1

Please sign in to comment.