Skip to content

Commit

Permalink
Merge pull request #224 from hashicorp/fix-go-module-name-2
Browse files Browse the repository at this point in the history
fix: fix go module name
  • Loading branch information
ansgarm authored Jul 15, 2022
2 parents b336441 + ca67577 commit 03a70d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export class CdktfProviderProject extends cdk.JsiiProject {
mavenEndpoint: "https://hashicorp.oss.sonatype.org",
},
publishToGo: {
moduleName: providerName,
githubRepo: `github.com/hashicorp/cdktf-provider-${providerName}-go`,
moduleName: `github.com/hashicorp/cdktf-provider-${providerName}-go`,
gitUserEmail: "github-team-tf-cdk@hashicorp.com",
gitUserName: "CDK for Terraform Team",
},
Expand Down Expand Up @@ -120,6 +119,9 @@ export class CdktfProviderProject extends cdk.JsiiProject {
},
});

// workaround because JsiiProject does not support setting packageName
this.manifest.jsii.targets.go.packageName = providerName;

this.tasks.addEnvironment("CHECKPOINT_DISABLE", "1");

new CdktfConfig(this, {
Expand Down
4 changes: 2 additions & 2 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 03a70d3

Please sign in to comment.