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

refactor(cli): replace links with redirects #1138

Merged
merged 1 commit into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "cdktf/lib/testing/adapters/jest"; // Load types for expect matchers

describe("My CDKTF Application", () => {
// The tests below are example tests, you can find more information at
// https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/testing.md
// https://cdk.tf/testing
it.todo("should be tested");

// // All Unit testst test the synthesised terraform code, it does not create real-world resources
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/hcl2cdk/lib/expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function extractReferencesFromExpression(
`Found a reference that is unknown: ${input} has reference "${spot}". The id was not found in ${JSON.stringify(
nodeIds
)} with temporary values ${JSON.stringify(scopedIds)}.
Please leave a comment at https://github.com/hashicorp/terraform-cdk/issues/842 if you run into this issue.`
Please leave a comment at https://cdk.tf/bugs/convert-expressions if you run into this issue.`
);
return carry;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/@cdktf/hcl2cdk/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function convertToTypescript(hcl: string) {
json = await parse("terraform.tf", hcl);
} catch (err) {
throw new Error(
`Error: Could not parse HCL, this means either that the HCL passed is invalid or that you found a bug. If the HCL seems valid, please file a bug under https://github.com/hashicorp/terraform-cdk/issues/new?assignees=&labels=bug%2C+new%2C+feature%2Fconvert&template=bug-report.md&title=`
`Error: Could not parse HCL, this means either that the HCL passed is invalid or that you found a bug. If the HCL seems valid, please file a bug under https://cdk.tf/bugs/new/convert`
);
}

Expand All @@ -48,7 +48,7 @@ export async function convertToTypescript(hcl: string) {
try {
plan = schema.parse(json);
} catch (err) {
throw new Error(`Error: HCL-JSON does not conform to schema. This is not expected, please file a bug under https://github.com/hashicorp/terraform-cdk/issues/new?assignees=&labels=bug%2C+new%2C+feature%2Fconvert&template=bug-report.md&title=
throw new Error(`Error: HCL-JSON does not conform to schema. This is not expected, please file a bug under https://cdk.tf/bugs/new/convert
Please include this information:
${JSON.stringify((err as z.ZodError).errors)}`);
}
Expand Down Expand Up @@ -250,7 +250,7 @@ ${JSON.stringify((err as z.ZodError).errors)}`);
expressions[0],
"leading",
`Terraform Variables are not always the best fit for getting inputs in the context of Terraform CDK.
You can read more about this at https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/terraform-variables.md`
You can read more about this at https://cdk.tf/variables`
);
}

Expand All @@ -260,7 +260,7 @@ You can read more about this at https://github.com/hashicorp/terraform-cdk/blob/
providers[0],
"leading",
`Provider bindings are generated by running cdktf get.
See https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/using-providers.md#importing-providers-and-modules for more details.`
See https://cdk.tf/provider-generation for more details.`
);
}

Expand Down
96 changes: 48 additions & 48 deletions packages/@cdktf/hcl2cdk/test/__snapshots__/hcl2cdk.test.ts.snap

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cdktf-cli/lib/checkpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function getUserId(): string {
`This signature is a randomly generated UUID used to anonymously differentiate users in telemetry data order to inform product direction.
This signature is random, it is not based on any personally identifiable information.
To create a new signature, you can simply delete this file at any time.
See https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/telemetry.md for more
See https://cdk.tf/telemetry for more
information on how to disable it.`
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "cdktf/lib/testing/adapters/jest"; // Load types for expect matchers

describe("My CDKTF Application", () => {
// The tests below are example tests, you can find more information at
// https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/testing.md
// https://cdk.tf/testing
it.todo("should be tested");

// // All Unit testst test the synthesised terraform code, it does not create real-world resources
Expand Down
Loading