Skip to content

Commit

Permalink
chore: clean up deprecation work
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Dec 19, 2023
1 parent b99b7f4 commit b5598bb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/deprecate-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export class DeprecatePackages {
const deprecationStep: JobStep = {
name: "Mark the Go module as deprecated",
run: `find '.repo/dist/go' -mindepth 2 -maxdepth 4 -type f -name 'go.mod' | xargs sed -i '1s|^|${deprecationMessageForGo}|'`,
continueOnError: true, // @TODO remove this once we confirm it to be working
};
if (isDeprecated) {
packageInfo.publishToGo?.prePublishSteps?.splice(-1, 0, deprecationStep);
Expand Down
1 change: 0 additions & 1 deletion src/force-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ export class ForceRelease {
// Just straight up delete these full lines and everything in between them:
"sed -i -e '/### Provider Version/,/The provider version can be adjusted/!b' -e 'd' .repo/dist/go/*/README.md",
].join("\n"),
continueOnError: true,
},
{
name: "Copy the README file to the parent directory",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export class CdktfProviderProject extends cdk.JsiiProject {
// Just straight up delete these full lines and everything in between them:
"sed -i -e '/### Provider Version/,/The provider version can be adjusted/!b' -e 'd' .repo/dist/go/*/README.md",
].join("\n"),
continueOnError: true,
},
{
name: "Copy the README file to the parent directory",
Expand Down
2 changes: 1 addition & 1 deletion src/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ HashiCorp made the decision to stop publishing new versions of prebuilt [Terrafo
As a reminder, you can continue to use the \`${fqpnURL}\` provider in your CDK for Terraform (CDKTF) projects, even with newer versions of CDKTF, but you will need to generate the bindings locally. The easiest way to do so is to use the [\`provider add\` command](https://developer.hashicorp.com/terraform/cdktf/cli-reference/commands#provider-add), optionally with the \`--force-local\` flag enabled:
cdktf provider add ${fqpnURL} --force-local
\`cdktf provider add ${fqpnURL} --force-local\`
For more information and additional examples, check out our documentation on [generating provider bindings manually](https://cdk.tf/imports).
`.trim();
Expand Down
10 changes: 1 addition & 9 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5598bb

Please sign in to comment.